fix: avoid root spacetime health checks
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user