ci: run app directly before systemd to capture NestJS startup errors
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 34s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-24 12:07:58 +08:00
parent 8f7d30ea01
commit dbfb1d2fd6

View File

@ -86,6 +86,11 @@ jobs:
run: |
cd /opt/zhixi/backend && npx prisma generate
- name: Test-run API directly to capture errors
run: |
cd /opt/zhixi/backend
timeout 10 node dist/main.js 2>&1 || true
- name: Restart API service
run: |
sudo systemctl restart zhixi-api