sudo pip install heroku gunicorn flask
Setup Git
git init
git add requirements.txt Procfile app.py
git commit -am "init"
Setup Heroku
heroku login
heroku git:remote -a flaskapp01
Push to Heroku
git push heroku master
Run App Locally:
export FLASK_APP=app.py
flask run --host=0.0.0.0 --port=8080
- requirements.txt prerequisite pip packages for app.py
- Procfile command to run app.py
- app.py flask / python app