feat(ops): add database readiness probe
This commit is contained in:
@@ -550,6 +550,16 @@ if ! curl -fsS "${public_base}/" >/dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! curl -fsS "${public_base}/health" >/dev/null; then
|
||||
echo "Public API liveness check failed for ${public_base}/health"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! curl -fsS "${public_base}/ready" >/dev/null; then
|
||||
echo "Public API/database readiness check failed for ${public_base}/ready"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! curl -fsS -D "$auth_config_headers_file" -o "$auth_config_body_file" "${public_base}/api/auth/config"; then
|
||||
echo "Public API smoke check failed for ${public_base}/api/auth/config"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user