Skip to content

Instantly share code, notes, and snippets.

@junmakii
Created September 30, 2017 06:02
Show Gist options
  • Select an option

  • Save junmakii/ceaae3c4311b5d6438105d211f56ef7b to your computer and use it in GitHub Desktop.

Select an option

Save junmakii/ceaae3c4311b5d6438105d211f56ef7b to your computer and use it in GitHub Desktop.
"""
$ gunicorn -k tornado junmakii_test_tornado_with_gunicorn:app
"""
import tornado.web
import tornado.wsgi
import tornado.web
class AppHandler(tornado.web.RequestHandler):
def initialize(self, queue):
self.queue = queue
def get(self):
self.write(u'Hello')
app = tornado.web.Application([
(r'^/', AppHandler, {}),
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment