Explain how vdn-php work

This commit is contained in:
2023-11-10 20:46:52 +01:00
parent 876c7a6bfc
commit 9dcc438487

View File

@@ -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*.