console override ini

This commit is contained in:
Benoit Chesneau 2010-02-03 19:43:45 +01:00
parent bfbac6fa4c
commit eb0414e02c

View File

@ -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.