diff --git a/config.py b/config.py index 0305753..d1d185b 100644 --- a/config.py +++ b/config.py @@ -8,6 +8,8 @@ def app_conf(): conf = file.read() conf = json.loads(conf) file.close() + if 'STATIC_ENDPOINT' in os.environ: + conf['cdn']['static']['endpoint'] = os.environ['STATIC_ENDPOINT'] return conf # Get Redis configuration. @@ -16,8 +18,6 @@ def redis_conf(): conf = file.read() conf = json.loads(conf) file.close() - if 'STATIC_ENDPOINT' in os.environ: - conf['cdn']['static']['endpoint'] = os.environ['STATIC_ENDPOINT'] return conf app_conf = app_conf()