From 4a924a24fa3d109d203a9510219ac6b842805edd Mon Sep 17 00:00:00 2001 From: WangDL Date: Sun, 24 May 2026 12:43:54 +0800 Subject: [PATCH] ci: raw app output, 5s timeout, show exit code Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fb90a13..9a8ee8e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -85,10 +85,11 @@ jobs: run: | cd /opt/zhixi/backend && npx prisma generate - - name: Test-run app in foreground + - name: Run app directly (5s max, raw output) run: | cd /opt/zhixi/backend - timeout 8 node dist/main.js 2>&1 | tail -30 || true + timeout 5 node dist/main.js 2>&1 + echo "[EXIT:$?]" - name: Restart API service run: |