From 9dcc43848737091ae56c50813685006e937c2fb8 Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Fri, 10 Nov 2023 20:46:52 +0100 Subject: [PATCH] Explain how vdn-php work --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index fde4b9b..759697f 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,19 @@ Run the pipeline named `default`: vdn-drone exec --pipeline default ``` +## `vdn-php` + +Run PHP 8.2 in your current host directory. It forwards the server port and mounts the files in the VDN guest system. + +Run the PHP integrated server: + +```bash +vdn-php -S 0.0.0.0:8000 +#vdn-php -S localhost:8000 # This will not work, the server needs to listen on all adresses! +``` + +On your host system, use your favorite browser and check your website at `http://localhost:8000`. + ## `vdn-rsync` Copy files between the host and the guest system using *rsync*.