fix: correct .env.production path for Docker container
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 59s

/opt/zhixi/env/.env.production, not /etc/zhixi/.env.production

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-20 17:20:54 +08:00
parent b00c320496
commit c64dc9c95a

View File

@ -73,8 +73,8 @@ jobs:
- name: Start new container - name: Start new container
run: | run: |
ENV_FILE="" ENV_FILE=""
if [ -f /etc/zhixi/.env.production ]; then if [ -f /opt/zhixi/env/.env.production ]; then
ENV_FILE="--env-file /etc/zhixi/.env.production" ENV_FILE="--env-file /opt/zhixi/env/.env.production"
fi fi
docker run -d \ docker run -d \
--name zhixi-api \ --name zhixi-api \