#!/usr/bin/env bash set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" PY="${PY:-}" if [[ -z "${PY}" ]]; then if command -v python3.11 >/dev/null 2>&1; then PY="python3.11" else PY="python3" fi fi if [[ -f "$ROOT/.env" ]]; then set -a # shellcheck disable=SC1091 source "$ROOT/.env" set +a fi "$ROOT/scripts/check_ollama.sh" cd "$ROOT/services/governance-gateway" exec "$PY" -m uvicorn app.main:app --reload --host 127.0.0.1 --port 8080