An example of deploying a Flask app to Heroku.
Created
May 13, 2013 10:50
-
-
Save gisthero/5567514 to your computer and use it in GitHub Desktop.
Flask on Heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello(): | |
return 'Hello World!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: gunicorn hello:app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flask==0.9 | |
Jinja2==2.6 | |
Werkzeug==0.8.3 | |
gunicorn==0.17.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment