Allow for special config for staging.
This commit is contained in:
parent
8bf51461a7
commit
2ea59c8555
3 changed files with 25 additions and 1 deletions
3
app.py
3
app.py
|
@ -20,6 +20,9 @@ stack = os.environ.get('STACK', '').strip().lower()
|
|||
if stack.startswith('prod'):
|
||||
logger.info('Running with production config.')
|
||||
config = ProductionConfig()
|
||||
elif stack.startswith('staging'):
|
||||
logger.info('Running with staging config on production data.')
|
||||
config = StagingConfig()
|
||||
elif stack.startswith('localhosted'):
|
||||
logger.info('Running with debug config on production data.')
|
||||
config = LocalHostedConfig()
|
||||
|
|
Reference in a new issue