From 3431379c8aea6625f0d9303b5b89c5881dcb98d2 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 20 Sep 2017 13:25:14 -0400 Subject: [PATCH] Only pull values from config at runtime, not import-time. This fixes a bug @mikeb ran into. Not sure how/when it got introduced. --- module_build_service/manage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module_build_service/manage.py b/module_build_service/manage.py index 2b1f6da9..a7d805b3 100755 --- a/module_build_service/manage.py +++ b/module_build_service/manage.py @@ -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()