mirror of
https://github.com/LukeHagar/pypistats.org.git
synced 2025-12-09 20:57:48 +00:00
env bugfix
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user