author
@membriux
This repo contains the necessary files to work on your next Python-Flask web application and deploy it to heroku Feel free to download/fork it so you can use it as a reference!
0. Download this repo as a zip with all the project starter files
cd my-project
python3 -m venv venv
source venv/bin/activate
pip install flask gunicorn
Note: make sure to have pip installed
pip freeze
pip freeze > requirements.txt
vi Procfile
On your Procfile file, type this:
web: gunicorn app:app
7. Deploy: Go to Heroku Dashboard -> sign in -> create app, and deploy using Github
export FLASK_APP=app.py flask run
Development mode
export FLASK_APP=app.py export FLASK_ENV=development flask run