-
-
Save j2labs/1609243 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 import monkey | |
monkey.patch_all() | |
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