Created
September 30, 2017 06:02
-
-
Save junmakii/ceaae3c4311b5d6438105d211f56ef7b to your computer and use it in GitHub Desktop.
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
| """ | |
| $ 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