Skip to content

Commit f7408d9

Browse files
committed
Update documentation to include named server model arguments
1 parent 35acc2b commit f7408d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ Supports a development webserver which is slower but allows an easy edit/save/re
4141
4242
```bash
4343
$ xp -supervise web -m develop Service
44-
@xp.web.srv.Develop(HTTP @ `php -S 127.0.0.1:8080 -t /home/example/devel/shorturl`)
44+
@xp.web.srv.Develop(HTTP @ `php -S [...] -t /home/example/devel/shorturl`)
4545
# ...
4646
```
4747
4848
Now open the website at http://localhost:8080/hello
4949
5050
Server models
5151
-------------
52-
The four server models (*selectable via `-m <model>` on the command line*) are:
52+
The four server models (*selectable via `-m <model>[,argument[,argument...]]` on the command line*) are:
5353
54-
* **async** (*the default since 3.0.0*): A single-threaded web server. Handlers can yield control back to the server to serve other clients during lengthy operations such as file up- and downloads.
55-
* **prefork**: Much like Apache, forks a given number of children to handle HTTP requests. Requires the `pcntl` extension.
56-
* **develop**: As mentioned above, built ontop of the PHP development wenserver. Application code is recompiled and application setup performed from scratch on every request, errors and debug output are handled by the [development console](https://github.com/xp-forge/web/pull/35).
54+
* **async** (*the default*): A single-threaded web server. Handlers can yield control back to the server to serve other clients during lengthy operations such as file up- and downloads.
55+
* **prefork**: Much like Apache, forks a given number of children to handle HTTP requests. Requires the `pcntl` extension. Use `prefork,children=<n>` to control the number of child processes.
56+
* **develop**: As mentioned above, built ontop of the PHP development webserver. Application code is recompiled and application setup performed from scratch on every request, errors and debug output are handled by the [development console](https://github.com/xp-forge/web/pull/35). Use `develop,workers=<n>` to control the number of worker processes.
5757
5858
Request and response
5959
--------------------

0 commit comments

Comments
 (0)