From 0a2374217055012c4eec3f959ba882873c75e443 Mon Sep 17 00:00:00 2001 From: deploy Date: Thu, 29 Oct 2026 14:44:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=B9=E5=99=A8=E5=86=85=E5=85=B3?= =?UTF-8?q?=E9=97=AD=20Flask=20debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index db8c689..dea8979 100644 --- a/app.py +++ b/app.py @@ -369,7 +369,7 @@ if __name__ == '__main__': else: print(f"⚠️ 未检测到SSL证书,使用HTTP模式") print(f"监听地址: http://0.0.0.0:{HTTP_PORT}") - app.run(host='0.0.0.0', port=HTTP_PORT, debug=True) + app.run(host='0.0.0.0', port=HTTP_PORT, debug=(os.environ.get('UPLOAD_DEBUG','0')=='1')) except Exception as e: print(f"❌ 服务器启动失败: {e}") import traceback