Pluggdapps

Component system. Web framework. And more ...

serve – Start web-server.

Module contents

class pluggdapps.commands.serve.Serve(pa, *args, **kwargs)[source]

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
subparser(parser, subparsers)[source]

pluggdapps.interfaces.ICommand.subparser() interface method.

handle(args)[source]

pluggdapps.interfaces.ICommand.handle() interface method.

Table Of Contents

Related Topics

This Page