Skip to content

Commit

Permalink
Merge pull request #1 from jeremiak/master
Browse files Browse the repository at this point in the history
heroku-able
  • Loading branch information
lyzidiamond committed May 22, 2014
2 parents a74cdfd + ae3a087 commit 139f748
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn hello:app
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
centroids
=========

To run on Heroku requires a third party `BUILDPACK` for Heroku
2 changes: 0 additions & 2 deletions hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ def centroid():
</p>
</form></body>
'''

app.run(debug=True)
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Flask==0.10.1
Jinja2==2.7.2
MarkupSafe==0.23
Shapely==1.3.2
Werkzeug==0.9.4
gunicorn==18.0
itsdangerous==0.24
wsgiref==0.1.2
5 changes: 5 additions & 0 deletions runserver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from os import environ

from hello import app

app.run(port=environ.get('PORT', 5000))

0 comments on commit 139f748

Please sign in to comment.