Allow for special config for staging.

This commit is contained in:
jakedt 2014-03-04 19:40:29 -05:00
parent 8bf51461a7
commit 2ea59c8555
3 changed files with 25 additions and 1 deletions

3
app.py
View file

@ -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()