mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
update README. while I'm here add short option for workers
This commit is contained in:
parent
ec7614f50c
commit
6e3fec40fc
30
README.rst
30
README.rst
@ -24,18 +24,24 @@ Usage
|
||||
$ gunicorn --help
|
||||
Usage: gunicorn [OPTIONS] [APP_MODULE]
|
||||
|
||||
Options:
|
||||
-b BIND, --bind=BIND Adress to listen on. Ex. 127.0.0.1:8000 or
|
||||
unix:/tmp/gunicorn.sock
|
||||
--workers=WORKERS Number of workers to spawn. [1]
|
||||
-p PIDFILE, --pid=PIDFILE
|
||||
set the background PID FILE
|
||||
-D, --daemon Run daemonized in the background.
|
||||
--log-level=LOGLEVEL Log level below which to silence messages. [info]
|
||||
--log-file=LOGFILE Log to a file. - is stdout. [-]
|
||||
-d, --debug Debug mode. only 1 worker.
|
||||
--version show program's version number and exit
|
||||
-h, --help show this help message and exit
|
||||
Options:
|
||||
-b BIND, --bind=BIND Adress to listen on. Ex. 127.0.0.1:8000 or
|
||||
unix:/tmp/gunicorn.sock
|
||||
-w, --workers=WORKERS Number of workers to spawn. [none]
|
||||
-p PIDFILE, --pid=PIDFILE
|
||||
set the background PID FILE
|
||||
-D, --daemon Run daemonized in the background.
|
||||
-m UMASK, --umask=UMASK
|
||||
Define umask of daemon process
|
||||
-u USER, --user=USER Change worker user
|
||||
-g GROUP, --group=GROUP
|
||||
Change worker group
|
||||
--log-level=LOGLEVEL Log level below which to silence messages. [info]
|
||||
--log-file=LOGFILE Log to a file. - is stdout. [-]
|
||||
-d, --debug Debug mode. only 1 worker.
|
||||
--version show program's version number and exit
|
||||
-h, --help show this help message and exit
|
||||
|
||||
|
||||
|
||||
Example with test app::
|
||||
|
||||
@ -30,7 +30,7 @@ def options():
|
||||
return [
|
||||
op.make_option('-b', '--bind', dest='bind',
|
||||
help='Adress to listen on. Ex. 127.0.0.1:8000 or unix:/tmp/gunicorn.sock'),
|
||||
op.make_option('--workers', dest='workers', type='int',
|
||||
op.make_option('-w', '--workers', dest='workers', type='int',
|
||||
help='Number of workers to spawn. [%default]'),
|
||||
op.make_option('-p','--pid', dest='pidfile',
|
||||
help='set the background PID FILE'),
|
||||
|
||||
@ -23,7 +23,7 @@ class Command(BaseCommand):
|
||||
option_list = BaseCommand.option_list + (
|
||||
make_option('--adminmedia', dest='admin_media_path', default='',
|
||||
help='Specifies the directory from which to serve admin media.'),
|
||||
make_option('--workers', dest='workers', default='1',
|
||||
make_option('-w', '--workers', dest='workers', default='1',
|
||||
help='Specifies the number of worker processes to use.'),
|
||||
make_option('--pid', dest='pidfile', default='',
|
||||
help='set the background PID file'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user