An open API service indexing awesome lists of open source software.

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

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