Skip to content

Commit

Permalink
add heroku stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
Niall O'Higgins committed Mar 13, 2012
1 parent 89ca08a commit c170123
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pyramid==1.0
3 changes: 3 additions & 0 deletions run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
bin/python setup.py develop
bin/python runapp.py
10 changes: 10 additions & 0 deletions runapp.py
Original file line number Diff line number Diff line change
@@ -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.