优化生产日志

This commit is contained in:
yml
2026-06-02 21:28:09 +08:00
parent af754bb594
commit 1325c8fb89
4 changed files with 15 additions and 1 deletions
+6
View File
@@ -49,6 +49,12 @@ STORAGE_SECRET_ACCESS_KEY
./scripts/deploy-prod.sh --logs
```
后端运行日志会同时输出到 Docker 控制台,并写入宿主机:
```text
backend/logs/app-YYYY-MM-DD.log
```
测试阶段需要清空并重建数据库时:
```bash
+2
View File
@@ -47,6 +47,8 @@ services:
restart: unless-stopped
env_file:
- ../backend/.env
volumes:
- ../backend/logs:/app/logs
depends_on:
mysql:
condition: service_healthy