From dbfb1d2fd68919aeb7df2f02b4a944df91d284bc Mon Sep 17 00:00:00 2001 From: WangDL Date: Sun, 24 May 2026 12:07:58 +0800 Subject: [PATCH] ci: run app directly before systemd to capture NestJS startup errors Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 357f1ae..caa4fac 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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