env bugfix

This commit is contained in:
crflynn
2018-04-22 18:58:46 -04:00
parent 639a1febc2
commit 5161e5cd09
5 changed files with 12 additions and 7 deletions

View File

@@ -11,12 +11,13 @@ from pypistats.settings import configs
# change this for migrations
env = os.environ.get("ENV", "dev")
env = os.environ.get("ENV", "prod")
print(env)
app = create_app(configs[env])
celery = create_celery(app)
app.logger.info(f"Environment: {env}")
@app.before_request
def before_request():