Skip to content

Instantly share code, notes, and snippets.

@an01f01
Last active December 20, 2020 16:52
Show Gist options
  • Save an01f01/303fdd3608bfd47d06ee718aec298f67 to your computer and use it in GitHub Desktop.
Save an01f01/303fdd3608bfd47d06ee718aec298f67 to your computer and use it in GitHub Desktop.
Creating and launching a tornado server
def main():
app = make_app()
return app
app = main()
if __name__ == '__main__':
print("starting tornado server..........")
app.listen(tornado.options.options.port)
tornado.ioloop.IOLoop.current().start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment