@@ -31,6 +31,7 @@ if __name__ == "__main__":
try:
controller.start()
+ # 启动 flask web 接口,14000 端口
web_start(rest_host, rest_port)
except KeyboardInterrupt:
print("Shutting down")
@@ -8,7 +8,7 @@ dao = dataInstance
def web_start(host, port):
- app.run(host=host, port=port)
+ app.run(host=host, port=port, debug=False)
@app.route('/')