no message
Some checks failed
CI / lint-and-build (push) Failing after 2s
CD / deploy (push) Failing after 31s

This commit is contained in:
2026-06-11 00:08:23 +08:00
parent 7ed76c10ea
commit b082012782

View File

@@ -61,6 +61,9 @@ jobs:
PID=$(cat "$PID_FILE")
echo "pid=$PID"
if ! kill -0 "$PID" 2>/dev/null; then
kill -0 "$PID" 2>/dev/null
result=$?
echo "exit code = $result" # 0 表示活着非0表示死了
echo "pid $PID not alive" >&2
sudo -n tail -n 50 "$DEPLOY_DIR/logs/app.log" >&2 || true
exit 1