https://github.com/en10/herokuflask
Simple Python Flask Web App on Heroku
https://github.com/en10/herokuflask
flask heroku python
Last synced: about 2 months ago
JSON representation
Simple Python Flask Web App on Heroku
- Host: GitHub
- URL: https://github.com/en10/herokuflask
- Owner: EN10
- Created: 2018-01-21T23:56:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T23:28:26.000Z (almost 6 years ago)
- Last Synced: 2025-10-04T13:29:20.845Z (9 months ago)
- Topics: flask, heroku, python
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Python Web App for Heroku
* Based on [Flask Hello World](https://flask.palletsprojects.com/en/1.1.x/quickstart/#a-minimal-application)
* [This App on Heroku](https://flaskapp01.herokuapp.com)
* [Python Docs on Heroku](https://devcenter.heroku.com/categories/python-support)
* [Inception on Heroku](https://github.com/EN10/InceptionHeroku)
#### Install
sudo pip install heroku gunicorn flask
**Setup Git**
git init
git add requirements.txt Procfile app.py
git commit -am "init"
**Setup Heroku**
heroku login
heroku git:remote -a flaskapp01
**Push to Heroku**
git push heroku master
**Run App Locally:**
export FLASK_APP=app.py
flask run --host=0.0.0.0 --port=8080
#### Files:
* [requirements.txt](https://raw.githubusercontent.com/EN10/PythonHeroku/master/requirements.txt) prerequisite pip packages for app.py
* [Procfile](https://raw.githubusercontent.com/EN10/PythonHeroku/master/Procfile) command to run app.py
* [app.py](https://raw.githubusercontent.com/EN10/PythonHeroku/master/app.py) flask / python app