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,16 +232,15 @@ def run_paster():
|
|||||||
else:
|
else:
|
||||||
workers = int(ctx.local_conf.get('workers', 1))
|
workers = int(ctx.local_conf.get('workers', 1))
|
||||||
|
|
||||||
host = ctx.local_conf.get('host')
|
if not opts.bind:
|
||||||
port = ctx.local_conf.get('port')
|
host = ctx.local_conf.get('host')
|
||||||
if host:
|
port = ctx.local_conf.get('port')
|
||||||
if port:
|
if host:
|
||||||
bind = "%s:%s" % (host, port)
|
if port:
|
||||||
else:
|
bind = "%s:%s" % (host, port)
|
||||||
bind = host
|
else:
|
||||||
opts.bind = bind
|
bind = host
|
||||||
|
opts.bind = bind
|
||||||
|
|
||||||
|
|
||||||
debug = ctx.global_conf.get('debug') == "true"
|
debug = ctx.global_conf.get('debug') == "true"
|
||||||
if debug:
|
if debug:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user