Permalink
Browse files

Deploy to Heroku.

  • Loading branch information...
1 parent 2fc33c4 commit a84a802faecaee66495ae39c38eb708d4149a6f7 @hdemers committed Jun 14, 2012
Showing with 7 additions and 2 deletions.
  1. +1 −0 Procfile
  2. +6 −2 runserver.py
View
@@ -0,0 +1 @@
+web: python runserver.py
View
@@ -1,5 +1,9 @@
-from webapp import app
+import os
+from webapp import app
#os.environ["FLASK_DEV_SERVER"] = "true"
-app.run(debug=True, host='0.0.0.0')
+
+# Bind to PORT if defined, otherwise default to 5000.
+port = int(os.environ.get('PORT', 5000))
+app.run(debug=True, host='0.0.0.0', port=port)

0 comments on commit a84a802

Please sign in to comment.