I\'m trying to deploy a Flask app to Heroku. After deploying, application crashes and I get an error ModuleNotFoundError: No module named \'app\'.
Project structure
web:gunicorn app:app is standard Procfile. It expects that your .py file should be named app.py.
web:gunicorn app:app
If you want to change .py name you should change Procfile as well. web:gunicorn my_app_name:app After that you can name your file - my_app_name.py
web:gunicorn my_app_name:app