mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix gunicorn_paster
This commit is contained in:
parent
00d85b9428
commit
bfbac6fa4c
@ -232,9 +232,16 @@ def run_paster():
|
|||||||
else:
|
else:
|
||||||
workers = int(ctx.local_conf.get('workers', 1))
|
workers = int(ctx.local_conf.get('workers', 1))
|
||||||
|
|
||||||
host = opts.host or ctx.local_conf.get('host', '127.0.0.1')
|
host = ctx.local_conf.get('host')
|
||||||
port = opts.port or int(ctx.local_conf.get('port', 8000))
|
port = ctx.local_conf.get('port')
|
||||||
bind = "%s:%s" % (host, port)
|
if host:
|
||||||
|
if port:
|
||||||
|
bind = "%s:%s" % (host, port)
|
||||||
|
else:
|
||||||
|
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