- Copy
Procfile
and changeflask-learn.py
to your file - Copy runtime.text and requirements.text
- in terminal
cd
to your app - In terminal `heroku create
git push heroku master
(use this to update the app)- `heroku open
- Make sure app run in your file is like this:
from os import environ
app.run(host='0.0.0.0',debug=True, port=environ.get("PORT", 5000))
(so it can take the port it needs)
- DONE!!!!