#!/bin/bash

if [[ $(curl -sL "http://localhost:${CMD_PORT:-3000}/_health" | jq -r '.ready' 2>/dev/null) = "true" ]]; then
    exit 0
else
    exit 1
fi
