fix: use absolute path for DATABASE_URL in Docker

This commit is contained in:
2026-03-21 02:23:45 +08:00
parent 2181f8a738
commit 89a8b316c2
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ services:
# 持久化数据库文件
- student-data:/app/data
environment:
- DATABASE_URL=file:./data/student.db
- DATABASE_URL=file:/app/data/student.db
- NODE_ENV=production
restart: unless-stopped
healthcheck: