ServeCommand


Attributes

a default_interactive

0

a default_verbosity

1

a description

"    This command serves a web application that uses a paste.deploy\n    configuration file for the server and application.  \n    \n    If start/stop/restart is given, then --daemon is implied, and it will\n    start (normal operation), stop (--stop-daemon), or do both.\n\n    You can also include variable assignments like 'http_port=8080'\n    and then use %(http_port)s in your config files.\n    "

a group_name

''

a hidden

False

a max_args

None

a max_args_error

'You must provide no more than %(max_args)s arguments'

a min_args

0

a min_args_error

'You must provide at least %(min_args)s arguments'

a parser

<paste.script.bool_optparse.BoolOptionParser instance at 0x8c8c5ac>

a possible_subcommands

('start', 'stop', 'restart', 'status')

a required_args

()

a requires_config_file

True

a return_code

0

a summary

'Serve the described application'

a takes_config_file

1

a usage

'CONFIG_FILE [start|stop|restart|status] [var=value]'

Methods

f command(self) ...

f __init__(self, name) ...

f loadserver(self, server_spec, name, relative_to, **kw) ...

f loadapp(self, app_spec, name, relative_to, **kw) ...

f daemonize(self) ...

f record_pid(self, pid_file) ...

f stop_daemon(self) ...

f show_status(self) ...

f restart_with_reloader(self) ...

f restart_with_monitor(self, reloader=False) ...

f change_user_group(self, user, group) ...

See the source for more information.