Flask Heroku Sample
A simple Python Flask example application that's ready to run on Heroku.
Development Setup
-
pipenv install -
pipenv shell -
python app.py
Screenshot
Deploy
-
heroku create -
heroku addons:create heroku-postgresql:hobby-dev -
git push heroku master -
Note: make sure you run
db.create_all()to create the tables:
$ heroku run python
Python 3.6.8 (default, Jan 29 2019, 19:35:16)
>>> from app import db
>>> db.create_all()
>>> exit()Contributors
On this page
Languages
HCL57.2%Dockerfile15.7%Python12.6%HTML8.1%CSS6.0%Procfile0.4%
Contributors
MIT License
Created November 10, 2025
Updated November 11, 2025
