Skip to content

Instantly share code, notes, and snippets.

@andyparsons
Created January 13, 2012 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andyparsons/1609226 to your computer and use it in GitHub Desktop.
Save andyparsons/1609226 to your computer and use it in GitHub Desktop.
# 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