fix: verify API readiness during S57 deploy
This commit is contained in:
@@ -62,7 +62,7 @@ echo "phase=verify"
|
||||
test "$(readlink -f /opt/lisglosips/current)" = "$new"
|
||||
test "$(cat /opt/lisglosips/current/.deployed-commit)" = "$commit"
|
||||
test "$(systemctl is-active lisglosips@api)" = active
|
||||
curl --fail --silent --show-error http://127.0.0.1:3000/api/v2/health >/dev/null
|
||||
curl --fail --silent --show-error http://127.0.0.1:3000/api/v2/health/ready >/dev/null
|
||||
curl --fail --silent --show-error -H 'content-type: application/json' \
|
||||
--data '{"jsonrpc":"2.0","id":1,"method":"dlg_list","params":[]}' \
|
||||
http://127.0.0.1:8888/mi >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user