This commit is contained in:
喆OvO
2026-08-11 22:54:54 +08:00
parent ceb4404c6a
commit cc43873ad2
+2 -1
View File
@@ -68,5 +68,6 @@ if __name__ == "__main__":
atexit.register(stop_scheduler)
DEBUG = os.environ.get("FLASK_DEBUG", "").lower() in ("1", "true", "yes")
bind_host = os.environ.get("FLASK_BIND", "127.0.0.1")
app.run(host=bind_host, port=int(os.environ.get("FLASK_PORT", "5000")),
# 开发模式使用 5001,避免与生产 Gunicorn(0.0.0.0:5000)抢端口。
app.run(host=bind_host, port=int(os.environ.get("FLASK_PORT", "5001")),
debug=DEBUG, threaded=True)