Bases: pluggdapps.plugin.Singleton
Sub-command for starting native web server. Configuring this plugin does not control the web server, instead refer to the corresponding web server plugin. By default it uses HTTPEPollServer, a single threaded / single process epoll based server.
For automatic server restart, when a module or configuration file is modified, pass -m switch to main script and -r switch to this sub-command. Typically used in development mode,
1 | $ pa -w -m -c <master.ini> serve -r
|
fork ---> child ------> poll-thread
| | |
*--------* |
monitor *---> pluggdapps-thread
pluggdapps.interfaces.ICommand.subparser() interface method.
pluggdapps.interfaces.ICommand.handle() interface method.