Permalink
Browse files

Adding Heroku support

  • Loading branch information...
1 parent e0268bc commit da5d7af8b9d805cb54f7e50b86a4992c5a6bf6d9 @amadeus committed Oct 18, 2012
Showing with 7 additions and 0 deletions.
  1. +1 −0 Procfile
  2. +2 −0 requirements.txt
  3. +4 −0 server.py
View
@@ -0,0 +1 @@
+web: python server.py
View
@@ -0,0 +1,2 @@
+distribute==0.6.27
+wsgiref==0.1.2
View
@@ -23,6 +23,10 @@
}
}
+# Override port if we are on a Heroku server
+if os.environ.get('PORT'):
+ SETTINGS['port'] = int(os.environ.get('PORT'))
+
# Get the current directory
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
if BASE_DIR[-1] != '/':

0 comments on commit da5d7af

Please sign in to comment.