From 79940889792877a88672d38aa5f505bf4fe32bc7 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sun, 12 Nov 2017 16:29:08 +0100 Subject: [PATCH] Add some notes on the development webserver --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 444667ea..1604db8e 100755 --- a/README.md +++ b/README.md @@ -32,4 +32,12 @@ $ xp -supervise web Service # ... ``` +Supports a development webserver which is slower but allows an easy edit/save/reload development process. It uses the [PHP development server](http://php.net/features.commandline.webserver) in the background; PHP code is recompiled and application setup performed from scratch on every request. + +```bash +$ xp -supervise web -m develop Service +@xp.web.Develop(HTTP @ `php -S localhost:8080 -t /home/example/devel/shorturl`) +# ... +``` + Now open the website at http://localhost:8080/hello \ No newline at end of file