Only pull values from config at runtime, not import-time.

This fixes a bug @mikeb ran into.

Not sure how/when it got introduced.
This commit is contained in:
Ralph Bean
2017-09-20 13:25:14 -04:00
parent 479ee4f23b
commit 3431379c8a

View File

@@ -189,9 +189,13 @@ def generatelocalhostcert():
@console_script_help
@manager.command
def runssl(host=conf.host, port=conf.port, debug=conf.debug):
def runssl(host=None, port=None, debug=None):
""" Runs the Flask app with the HTTPS settings configured in config.py
"""
host = host or conf.host
port = port or conf.port
debug = debug or conf.debug
logging.info('Starting Module Build Service frontend')
ssl_ctx = _establish_ssl_context()