Last active
December 20, 2020 16:52
-
-
Save an01f01/303fdd3608bfd47d06ee718aec298f67 to your computer and use it in GitHub Desktop.
Creating and launching a tornado server
This file contains 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
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