feat(deploy): 支持通过 .env 文件注入后端环境变量

- docker-compose.yml 添加 env_file 加载 backend/.env
- deploy.sh 自动检测并从 .env.example 复制模板
- .dockerignore 排除 .env 防止密钥泄露到镜像
This commit is contained in:
2026-05-24 21:39:49 +08:00
parent fa93d18e61
commit 2c5f83f64e
3 changed files with 19 additions and 2 deletions
+1
View File
@@ -2,4 +2,5 @@ node_modules
frontend/node_modules
frontend/dist
backend/bin
backend/.env
.git