mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
add more debugging to app ci script
This commit is contained in:
@ -14,7 +14,13 @@ echo "listen_address: 127.0.0.1" >> /root/hyperglass/hyperglass.yaml
|
|||||||
|
|
||||||
echo "[INFO] Starting UI build."
|
echo "[INFO] Starting UI build."
|
||||||
poetry run hyperglass build-ui
|
poetry run hyperglass build-ui
|
||||||
echo "[SUCCESS] UI build completed."
|
|
||||||
|
if [[ ! $? == 0 ]]; then
|
||||||
|
echo "[ERROR] Failed to start hyperglass."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "[SUCCESS] UI build completed."
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[INFO] Starting hyperglass..."
|
echo "[INFO] Starting hyperglass..."
|
||||||
poetry run hyperglass start &> /var/log/hyperglassci.log &
|
poetry run hyperglass start &> /var/log/hyperglassci.log &
|
||||||
@ -23,9 +29,10 @@ sleep 10
|
|||||||
if [[ ! $? == 0 ]]; then
|
if [[ ! $? == 0 ]]; then
|
||||||
echo "[ERROR] Failed to start hyperglass."
|
echo "[ERROR] Failed to start hyperglass."
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "[SUCCESS] Started hyperglass."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[SUCCESS] Started hyperglass."
|
|
||||||
echo "[INFO] Running HTTP test..."
|
echo "[INFO] Running HTTP test..."
|
||||||
|
|
||||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8001)
|
STATUS=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8001)
|
||||||
@ -36,7 +43,8 @@ if [[ ! $? == 0 ]]; then
|
|||||||
echo "[ERROR] HTTP test failed."
|
echo "[ERROR] HTTP test failed."
|
||||||
exit 1
|
exit 1
|
||||||
elif [[ ! "$STATUS" == "200" ]]; then
|
elif [[ ! "$STATUS" == "200" ]]; then
|
||||||
echo "[ERROR] HTTP test failed."
|
echo "[ERROR] HTTP test failed. Startup log:"
|
||||||
|
cat /var/log/hyperglassci.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user