Fix Gunicorn not finding app in app.py due to __name__ check

This commit is contained in:
Xevion
2022-03-28 17:27:16 -05:00
parent 6dfed98ba3
commit e6db061500

2
app.py
View File

@@ -120,6 +120,6 @@ def create_app():
# Only used for Heroku; use 'flask run' or internal IDE configurations otherwise # Only used for Heroku; use 'flask run' or internal IDE configurations otherwise
if __name__ == '__main__':
app = create_app() app = create_app()
if __name__ == '__main__':
app.run() app.run()