Created
December 16, 2015 07:57
-
-
Save dmitryhd/83735f0c10dedbb04e8b to your computer and use it in GitHub Desktop.
Flask with tornado
This file contains hidden or 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
| from tornado.wsgi import WSGIContainer | |
| from tornado.httpserver import HTTPServer | |
| from tornado.ioloop import IOLoop | |
| app = Flask(....) | |
| http_server = HTTPServer(WSGIContainer(app)) | |
| http_server.listen(self.settings.web_port) | |
| IOLoop.instance().start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment