Template for deploying a flask app to heroku. Created for the Spiced Data Science Bootcamp.
Original template created by Malte Bonart; this version of the template adapted by Paul Wlodkowski.
- Malte's original template can be found here: https://github.com/bonartm/heroku-flask
- free heroku account
- heroku cli installed and set up locally
- clone the repository
git clone https://github.com/pawlodkowski/heroku_flask_template.git
cd heroku_flask_template
- create a new heroku app
heroku create --region eu <my-app-name>
- test the app locally
heroku local web
on windows use
heroku local web -f Procfile.windows
- push code to heroku
git push heroku master
- open website in browser
heroku open
- to delete app
heroku apps:destroy <my-app-name>
- Official Python Heroku Tutorial using Django
- Deploying a Dash App (scroll down to the section on Heroku deployment, which is the free alternative to Dash Enterprise).
- The Flask Mega-Tutorial: Deployment on Heroku
- This is overall an excellent, well-written tutorial on all things Flask related. Miguel Grinberg gives you an extensive, step-by-step guide on building an entire social network / blog website from scratch using Flask + all its extensions. You learn a lot of Full Stack Web Development along the way.