Rename no_reload (#4703)

This commit is contained in:
Beto Dealmeida 2018-03-28 14:44:01 -07:00 committed by Maxime Beauchemin
parent 485b0c275e
commit 7e1b6b7363
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ def init():
'-d', '--debug', action='store_true',
help='Start the web server in debug mode')
@manager.option(
'-n', '--no-reload', action='store_false', dest='no_reload',
'-n', '--no-reload', action='store_false', dest='use_reloader',
default=config.get('FLASK_USE_RELOAD'),
help="Don't use the reloader in debug mode")
@manager.option(
@ -57,7 +57,7 @@ def init():
help='Path to a UNIX socket as an alternative to address:port, e.g. '
'/var/run/superset.sock. '
'Will override the address and port values.')
def runserver(debug, no_reload, address, port, timeout, workers, socket):
def runserver(debug, use_reloader, address, port, timeout, workers, socket):
"""Starts a Superset web server."""
debug = debug or config.get('DEBUG')
if debug:
@ -73,7 +73,7 @@ def runserver(debug, no_reload, address, port, timeout, workers, socket):
port=int(port),
threaded=True,
debug=True,
use_reloader=no_reload)
use_reloader=use_reloader)
else:
addr_str = ' unix:{socket} ' if socket else' {address}:{port} '
cmd = (