diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 2fbe38e..9600fa1 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -105,10 +105,12 @@ check_health() { } FAILED=0 -[[ -z "$SERVICES" || "$SERVICES" == "backend" ]] && \ +if [[ -z "$SERVICES" || "$SERVICES" == "backend" ]]; then check_health "backend" "http://localhost:${BACKEND_PORT}/api/health" || FAILED=1 -[[ -z "$SERVICES" || "$SERVICES" == "frontend" ]] && \ +fi +if [[ -z "$SERVICES" || "$SERVICES" == "frontend" ]]; then check_health "frontend" "http://localhost:${FRONTEND_PORT}/notebookllama" || FAILED=1 +fi if [[ "$FAILED" -eq 1 ]]; then fail "Health check failed — last 50 log lines:"