Skip to content
Newer
Older
100644 11 lines (8 sloc) 349 Bytes
c170123 @niallo add heroku stuffs
niallo authored
1 import os
2
3 from paste.deploy import loadapp
4 from paste.script.cherrypy_server import cpwsgi_server
5
6 if __name__ == "__main__":
7 port = int(os.environ.get("PORT", 5000))
8 wsgi_app = loadapp('config:production.ini', relative_to='.')
9 cpwsgi_server(wsgi_app, host='0.0.0.0', port=port,
10 numthreads=10, request_queue_size=200)
Something went wrong with that request. Please try again.