Steps to create a postgres database and deply a Python app to Heroku
pipenv install gunicorn
or
pip install gunicorn
https://devcenter.heroku.com/articles/heroku-cli
heroku login
heroku create appname
heroku addons:create heroku-postgresql:hobby-dev --app appname
heroku config --app appname
# Add to your app
touch Procfile
# Add this
web: gunicorn app:app
pip freeze > requirements.txt
touch runtime.txt
# Add this
python-3.7.2
git init
git add . && git commit -m 'Deploy'
heroku git:remote -a appname
git push heroku master
heroku run python
>>> from app import db
>>> db.create_all()
>>>exit()
heroku open
I am having the same problem. BUT I think I know what it is yet I don't know how to fix it.
I had successfully deployed a previous version of my app. Days later, I tried to upload a newer version and got that same message. I suspect that the changes are not getting committed to git (not Heroku) as the previous version is still running and it may have something to do with the virtual environment or not committing correctly (i.e.: not committing to the right folder.)