#!/usr/bin/env bash # Build and run the app locally, loading config from .env. set -euo pipefail cd "$(dirname "$0")/.." source scripts/go-env.sh if [[ ! -f .env ]]; then echo "No .env found. Copy .env.example to .env and fill it in." >&2 exit 1 fi # Load .env into the environment (export every assignment). set -a source .env set +a go build -o hsa ./cmd/hsa exec ./hsa "$@"