ci: capture journalctl logs when API restart fails
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 32s
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 32s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
fbe2e96381
commit
8f7d30ea01
@ -90,8 +90,13 @@ jobs:
|
||||
run: |
|
||||
sudo systemctl restart zhixi-api
|
||||
sleep 3
|
||||
sudo systemctl is-active zhixi-api
|
||||
echo "[deploy] zhixi-api active OK"
|
||||
if sudo systemctl is-active zhixi-api; then
|
||||
echo "[deploy] zhixi-api active OK"
|
||||
else
|
||||
echo "[deploy] zhixi-api FAILED to start — checking logs:"
|
||||
sudo journalctl -u zhixi-api --no-pager -n 100
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Deploy RAG Worker
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user