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