Skip to content

Commit

Permalink
disable webui debug by default
Browse files Browse the repository at this point in the history
  • Loading branch information
binux committed Nov 5, 2014
1 parent 8047880 commit 3f5f205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class g(object):
phantomjs_proxy_port = int(os.environ.get('PHANTOMJS_PROXY_PORT', 25555))
webui_host = os.environ.get('WEBUI_HOST', '0.0.0.0')
webui_port = int(os.environ.get('WEBUI_PORT', 5000))
debug = bool(os.environ.get('DEBUG'))
debug = bool(os.environ.get('DEBUG', False))
queue_maxsize = int(os.environ.get('QUEUE_MAXSIZE', 100))
demo_mode = bool(os.environ.get('DEMO_MODE'))

Expand Down Expand Up @@ -164,7 +164,7 @@ def run_webui(g=g):
app.config['webui_username'] = os.environ['WEBUI_USERNAME']
app.config['webui_password'] = os.environ.get('WEBUI_PASSWORD', '')
if not getattr(g, 'all_in_one', False):
app.debug = True
app.debug = g.debug
app.run(host=g.webui_host, port=g.webui_port)

def all_in_one(g=g):
Expand Down

0 comments on commit 3f5f205

Please sign in to comment.