Deploying Python Applications on Heroku
- Add control / metadata files
- app.json
{
"name": "NAME",
"description": "DESCRIPTION",
"repository": "HTTP_PATH_TO_REPO",
"logo": "HTTP_PATH_TO_LOGO",
"keywords": [ "KEYWORD1", "KEYWORD2"]
}
- Profile
web: gunicorn WSGI_CLASS_TO_LOAD:app
- update requirements.txt to add
- runtime.txt
git commit -am 'add Heroku files'
- Log into Heroku
- Create your Heroku application
- Push your branch (if master you can just use ‘heroku master’) for deployment
git push heroku BRANCH:master