Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
12 lines
238 B
Bash
Executable file
12 lines
238 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
for i in $(seq 1 60); do
|
|
if curl -fsS -o /dev/null http://localhost:8080/health 2>/dev/null; then
|
|
echo "Server is ready"
|
|
exit 0
|
|
fi
|
|
sleep 1
|
|
done
|
|
|
|
echo "Server did not become healthy after 60s" >&2
|
|
exit 1
|