ci: run app directly before systemd to capture NestJS startup errors
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 34s
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:
parent
8f7d30ea01
commit
dbfb1d2fd6
@ -86,6 +86,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd /opt/zhixi/backend && npx prisma generate
|
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
|
- name: Restart API service
|
||||||
run: |
|
run: |
|
||||||
sudo systemctl restart zhixi-api
|
sudo systemctl restart zhixi-api
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user