We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8720cd commit 1d48516Copy full SHA for 1d48516
backend/main.py
@@ -195,6 +195,7 @@ async def on_startup():
195
# 关闭时
196
@app.on_event("shutdown")
197
async def on_shutdown():
198
+ logger.info("On shutdown...")
199
close_reverse_proxy()
200
utils.store_statistics.dump()
201
startup.sh
@@ -2,4 +2,5 @@
2
cd /app
3
caddy start --config /app/Caddyfile --adapter caddyfile
4
cd /app/backend
5
-python main.py
+# python main.py
6
+exec uvicorn main:app --host 0.0.0.0 --port 8000 --proxy-headers --forwarded-allow-ips '*' --log-config logging_config.yaml
0 commit comments