Permalink
Browse files

use cherrypy server runner for pyramid1.3 support

  • Loading branch information...
1 parent 3f94ce8 commit 594c634b1048f9448484e73696b1c79da14abbc0 @niallo niallo committed Apr 9, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 requirements.txt
  2. +2 −2 wsgi.py
View
@@ -1 +1,2 @@
+cherrypy
pyramid
View
@@ -1,4 +1,4 @@
-from paste.httpserver import serve
+from pyramid.scripts.pserve import cherrypy_server_runner
from pyramid.config import Configurator
from pyramid.response import Response
@@ -14,4 +14,4 @@ def dump_environ(request):
application = config.make_wsgi_app()
if __name__ == '__main__':
- serve(application, host='0.0.0.0')
+ cherrypy_server_runner(application, host='0.0.0.0')

0 comments on commit 594c634

Please sign in to comment.