xp-framework/xp-runners — pull request #6 by thekid (2012-09-02 16:09:24+00:00)
Title: Development webserver

This pull request implements `xpws` as a command line runner around PHP's development webserver. The prerequisites for this are an existant `web.ini` (as also needed for production websites).

Ini file example:

```
[app]
mappings="/:rest"

[app::rest]
class="webservices.rest.server.rpc.RestHttpScriptlet"
init-params="de.thekid.rest|webservices.rest.server.routing.RestAnnotationRouter"
debug="STACKTRACE"
```

Usage example:

```sh
$ xpws.exe localhost:8081
[xpws#1800] running @ localhost:8081. Press to exit

[xpws#1800] shutting down...
```

The first command line argument specifies the host and port to bind to (*these values default to "localhost" and 8080*).