mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-08 06:08:19 -06:00
Fix Gunicorn not finding app in app.py due to __name__ check
This commit is contained in:
2
app.py
2
app.py
@@ -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
|
||||||
|
app = create_app()
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = create_app()
|
|
||||||
app.run()
|
app.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user