mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
console override ini
This commit is contained in:
parent
bfbac6fa4c
commit
eb0414e02c
@ -232,6 +232,7 @@ def run_paster():
|
|||||||
else:
|
else:
|
||||||
workers = int(ctx.local_conf.get('workers', 1))
|
workers = int(ctx.local_conf.get('workers', 1))
|
||||||
|
|
||||||
|
if not opts.bind:
|
||||||
host = ctx.local_conf.get('host')
|
host = ctx.local_conf.get('host')
|
||||||
port = ctx.local_conf.get('port')
|
port = ctx.local_conf.get('port')
|
||||||
if host:
|
if host:
|
||||||
@ -241,8 +242,6 @@ def run_paster():
|
|||||||
bind = host
|
bind = host
|
||||||
opts.bind = bind
|
opts.bind = bind
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
debug = ctx.global_conf.get('debug') == "true"
|
debug = ctx.global_conf.get('debug') == "true"
|
||||||
if debug:
|
if debug:
|
||||||
# we force to one worker in debug mode.
|
# we force to one worker in debug mode.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user