mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
handle preload in django command
This commit is contained in:
parent
62540cffaa
commit
7629575d8d
@ -39,6 +39,8 @@ class Command(BaseCommand):
|
|||||||
help="Change worker group"),
|
help="Change worker group"),
|
||||||
make_option('-n', '--name', dest='proc_name',
|
make_option('-n', '--name', dest='proc_name',
|
||||||
help="Process name"),
|
help="Process name"),
|
||||||
|
make_option('--preload', dest='preload_app', action='store_true', default=False,
|
||||||
|
help="Load application code before the worker processes are forked.")
|
||||||
)
|
)
|
||||||
help = "Starts a fully-functional Web server using gunicorn."
|
help = "Starts a fully-functional Web server using gunicorn."
|
||||||
args = '[optional port number, or ipaddr:port or unix:/path/to/sockfile]'
|
args = '[optional port number, or ipaddr:port or unix:/path/to/sockfile]'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user