mirror of https://github.com/apache/superset.git
Rename no_reload (#4703)
This commit is contained in:
parent
485b0c275e
commit
7e1b6b7363
|
@ -36,7 +36,7 @@ def init():
|
||||||
'-d', '--debug', action='store_true',
|
'-d', '--debug', action='store_true',
|
||||||
help='Start the web server in debug mode')
|
help='Start the web server in debug mode')
|
||||||
@manager.option(
|
@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'),
|
default=config.get('FLASK_USE_RELOAD'),
|
||||||
help="Don't use the reloader in debug mode")
|
help="Don't use the reloader in debug mode")
|
||||||
@manager.option(
|
@manager.option(
|
||||||
|
@ -57,7 +57,7 @@ def init():
|
||||||
help='Path to a UNIX socket as an alternative to address:port, e.g. '
|
help='Path to a UNIX socket as an alternative to address:port, e.g. '
|
||||||
'/var/run/superset.sock. '
|
'/var/run/superset.sock. '
|
||||||
'Will override the address and port values.')
|
'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."""
|
"""Starts a Superset web server."""
|
||||||
debug = debug or config.get('DEBUG')
|
debug = debug or config.get('DEBUG')
|
||||||
if debug:
|
if debug:
|
||||||
|
@ -73,7 +73,7 @@ def runserver(debug, no_reload, address, port, timeout, workers, socket):
|
||||||
port=int(port),
|
port=int(port),
|
||||||
threaded=True,
|
threaded=True,
|
||||||
debug=True,
|
debug=True,
|
||||||
use_reloader=no_reload)
|
use_reloader=use_reloader)
|
||||||
else:
|
else:
|
||||||
addr_str = ' unix:{socket} ' if socket else' {address}:{port} '
|
addr_str = ' unix:{socket} ' if socket else' {address}:{port} '
|
||||||
cmd = (
|
cmd = (
|
||||||
|
|
Loading…
Reference in New Issue