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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s