diff --git a/app.py b/app.py index de44f58..6f450aa 100644 --- a/app.py +++ b/app.py @@ -1777,4 +1777,6 @@ if __name__ == '__main__': print(" playwright: pip install playwright && playwright install chromium") print("\n🚀 Server running on http://0.0.0.0:16025") - app.run(host='0.0.0.0', port=16025, debug=True) \ No newline at end of file + # 生产模式:不启用 debug reloader(reloader 主进程在 worker 意外退出后不会自动拉起, + # 曾导致服务静默挂掉),改代码后需手动重启:kill 进程后 nohup 重新启动 + app.run(host='0.0.0.0', port=16025, debug=False, use_reloader=False, threaded=True) \ No newline at end of file