Permalink
Browse files

add heroku stuffs

  • Loading branch information...
1 parent 89ca08a commit c1701237f1df458567052b26d1cbb833796c177d @niallo niallo committed Mar 13, 2012
Showing with 14 additions and 0 deletions.
  1. +1 −0 requirements.txt
  2. +3 −0 run
  3. +10 −0 runapp.py
View
@@ -0,0 +1 @@
+Pyramid==1.0
View
3 run
@@ -0,0 +1,3 @@
+#!/bin/bash
+bin/python setup.py develop
+bin/python runapp.py
View
@@ -0,0 +1,10 @@
+import os
+
+from paste.deploy import loadapp
+from paste.script.cherrypy_server import cpwsgi_server
+
+if __name__ == "__main__":
+ port = int(os.environ.get("PORT", 5000))
+ wsgi_app = loadapp('config:production.ini', relative_to='.')
+ cpwsgi_server(wsgi_app, host='0.0.0.0', port=port,
+ numthreads=10, request_queue_size=200)

0 comments on commit c170123

Please sign in to comment.