wsgid

A backgrounding front-end over cherrypy
Download

wsgid Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Ali Afshar
  • Publisher web site:
  • http://glashammer.welterde.de/

wsgid Tags


wsgid Description

A backgrounding front-end over cherrypy wsgid is a backgrounding front-end over cherrypy (and potentially other web servers).ExamplesRun a server in the foreground after importing mywebapp.app as the application instance:wsgid --application mywebapp.app --foregroundRun a server in the foreground after importing and calling mywebapp.create_app as the application factory:wsgid --application_factory mywebapp.create_app -fRun a daemonized server using the pidfile mypid.pid after importing and calling mywebapp.create_app as the application factory:wsgid --application_factory mywebapp.create_app --pidfile mypid.pidStop a daemonized server using the pidfile mypid.pid:wsgid --pidfile mypid.pid --stopAll these options have short versions, and can override defaults in config files or the environment.Using config filesIni-style config files can be used to provide any of the options available. For example, myserver.ini:pidfile = mypid.pidapplication_factory = mywebapp.crate_appAnd then:wsgid -c myserver.iniIs equivalent to the above examples. Note that the actual section titles in the config file are ignored, and the file is essentially flattened.Using the environmentAdditionally any config variable can be overriden using the environment variables. The variable name is uppercased, and prefixed with 'WSGID' to avoid collisions with other apps for common names. For example:export WSGID_PIDFILE=mypid.pidIs equivalent to passing the --pidfile on the command line.Complete optionsUsage: wsgid Options: -h, --help show this help message and exit -c CONFIG_FILE, --config_file=CONFIG_FILE The configuration file -p PIDFILE, --pidfile=PIDFILE The PID file -f, --foreground Run the server in the foreground -s, --stop Stop the server. -a APPLICATION, --application=APPLICATION The WSGI Applciation instance to import -A APPLICATION_FACTORY, --application_factory=APPLICATION_FACTORY The WSGI Applciation factory to import -d, --debug Run in debug mode. -P PORT, --port=PORT The port to listen on. -H HOST, --host=HOST The host to listen on. -L LOGDIR, --logdir=LOGDIR The directory for logs. -R STDREDIRECT, --stdredirect=STDREDIRECT The file to redirect stdio to. -w WORKDIR, --workdir=WORKDIR The working directory for the daemon. -U UMASK, --umask=UMASK The umask for the spawned child. -n SERVERNAME, --servername=SERVERNAME The server name Requirements: · Python


wsgid Related Software