Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Last active April 26, 2017 19:52
Show Gist options
  • Save selcukusta/df0b9fa064a4571151b997b5da8bccee to your computer and use it in GitHub Desktop.
Save selcukusta/df0b9fa064a4571151b997b5da8bccee to your computer and use it in GitHub Desktop.
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Docker container'da yaşayan bir garip Tornado uygulaması...")
def make_app():
return tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
app = make_app()
app.listen(1905)
tornado.ioloop.IOLoop.current().start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment