rely on {conf,module_build_service}/config.py and 'debug' conf item value

This commit is contained in:
Filip Valder
2016-12-09 17:32:20 +01:00
parent 379af8fe7e
commit 184c73cae9

View File

@@ -288,14 +288,11 @@ def generatelocalhostcert():
@manager.command
def runssl(host=conf.host, port=conf.port, debug=False):
def runssl(host=conf.host, port=conf.port, debug=conf.debug):
""" Runs the Flask app with the HTTPS settings configured in config.py
"""
logging.info('Starting Module Build Service frontend')
ssl_ctx = _establish_ssl_context()
if 'MODULE_BUILD_SERVICE_DEVELOPER_ENV' in os.environ and \
os.environ['MODULE_BUILD_SERVICE_DEVELOPER_ENV']:
debug = True
app.run(
host=host,
port=port,