Deploying Flask app to heroku causes 500 error at create_app() [duplicate] Deploying Flask app to heroku causes 500 error at create_app() [duplicate] heroku heroku

Deploying Flask app to heroku causes 500 error at create_app() [duplicate]


You need to call create_app to get the application that Gunicorn will serve.

In app.py do:

from app import create_appapp = create_app()

Then change your Procfile to this:

web: flask db upgrade; gunicorn app:app