def main():
tornado.options.parse_command_line()
__init()
LOG.info('start run server on %s:%s' % (gsettings.LISTEN_ADDRESS, options.port))
http_server = tornado.httpserver.HTTPServer(Application())
http_server.listen(options.port, address=gsettings.LISTEN_ADDRESS)
tornado.ioloop.IOLoop.instance().start()
评论列表
文章目录