Skip to content

Instantly share code, notes, and snippets.

@dmitryhd
Created December 16, 2015 07:57
Show Gist options
  • Select an option

  • Save dmitryhd/83735f0c10dedbb04e8b to your computer and use it in GitHub Desktop.

Select an option

Save dmitryhd/83735f0c10dedbb04e8b to your computer and use it in GitHub Desktop.
Flask with tornado
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