Created
January 13, 2012 22:59
-
-
Save andyparsons/1609226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gevent | |
from gevent.wsgi import WSGIServer | |
http_server = WSGIServer(('', port), app) | |
http_server.serve_forever() | |
# tornado | |
from tornado.wsgi import WSGIContainer | |
from tornado.httpserver import HTTPServer | |
from tornado.ioloop import IOLoop | |
http_server = HTTPServer(WSGIContainer(app)) | |
http_server.listen(port) | |
IOLoop.instance().start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment