Deploy a Flask app on Heroku


Quick steps to deploy a flask application on Heroku.

echo 'web: gunicorn app:app' > Procfile
heroku create APP_NAME-stage
heroku create APP_NAME-prod
git remote add stage git@heroku.com:APP_NAME.git
git remote add prod git@heroku.com:APP_NAME.git
git push stage master
git push prod master

See reference article for detailed steps.

Published by

Leave a comment