Commit 494e0ed8 authored by 张鹏程's avatar 张鹏程

1. 修改startup.py

parent 6c0c7f14
Pipeline #927 failed with stages
......@@ -13,7 +13,7 @@ from tornado.options import options, define
define("port", default=20010, help="run on the given port ", type=int)
# define("log_path", default='/tmp', help="log path ", type=str)
define("debug", default=True, help="enable debug mode")
tornado.options.parse_command_line()
options.parse_command_line()
from config import settings
from handler import ReportAnalysis_Handler,UpLoadFiles_Handler
......@@ -36,7 +36,6 @@ def apps():
if __name__ == "__main__":
debug = options.debug
print(debug)
if debug:
app = apps()
server = HTTPServer(app)
......@@ -46,7 +45,6 @@ if __name__ == "__main__":
IOLoop.instance().start()
else:
tornado.options.parse_command_line()
app = apps()
http_server = tornado.httpserver.HTTPServer(app)
http_server.bind(options.port)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment