lqg 2 years ago
parent
commit
968da4040a
2 changed files with 2 additions and 1 deletions
  1. 1 0
      main.py
  2. 1 1
      receive_email/web.py

+ 1 - 0
main.py

@@ -31,6 +31,7 @@ if __name__ == "__main__":
 
     try:
         controller.start()
+        # 启动 flask web 接口,14000 端口
         web_start(rest_host, rest_port)
     except KeyboardInterrupt:
         print("Shutting down")

+ 1 - 1
receive_email/web.py

@@ -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('/')