A basic template for deploying a flask app to heroku.
Foundational code from https://github.com/datademofun/heroku-basic-flask
- Create a new Github repo
- Setup a new heroku app
- Connect your new heroku app up to the github repo of your newly cloned project
- Make your changes to this template
- Push your changes to the master branch of your new repo
You code will then be picked up by Heroku, and deployed to the app that you configured
You can also choose to deploy your code directly to Heroku (rathern than going to through a github repo) but I prefer having my code changes tracked outside of Heroku, so I'll be sticking with this method.
When testing/developing your code it is recommeneded to use a python virtual environment. You can find details on the setup process for for that here.