def main tornado options parse_command_line http_server tornado httpse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
def main():
"""
"""
tornado.options.parse_command_line()
http_server = tornado.httpserver.HTTPServer(Application())
http_server.listen(options.port)
tornado.ioloop.IOLoop.instance().start()
if __name__ == "__main__":
main()