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: |
|
run: |
|
||||||
sudo systemctl restart zhixi-api
|
sudo systemctl restart zhixi-api
|
||||||
sleep 3
|
sleep 3
|
||||||
sudo systemctl is-active zhixi-api
|
if sudo systemctl is-active zhixi-api; then
|
||||||
echo "[deploy] zhixi-api active OK"
|
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
|
- name: Deploy RAG Worker
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user