fix: avoid root spacetime health checks

This commit is contained in:
2026-05-03 02:01:16 +08:00
parent e0d0531c9c
commit 562b5eb720
2 changed files with 2 additions and 4 deletions

View File

@@ -253,14 +253,12 @@ pipeline {
is_spacetimedb_ready() {
local server_url="http://127.0.0.1:3101"
local output=""
if command -v curl >/dev/null 2>&1 && curl -fsS "${server_url}/v1/ping" >/dev/null 2>&1; then
return 0
fi
output="$("${SPACETIME_ROOT}/spacetime" --root-dir="${SPACETIME_ROOT}" server ping "${server_url}" 2>&1 || true)"
[[ "${output}" == *"Server is online:"* ]]
return 1
}
wait_for_spacetimedb_service() {