#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"

if [ ! -f .env.local ]; then
  cp .env.local.example .env.local
  echo "Created .env.local from the template — fill it in, then re-run." >&2
  exit 1
fi

docker compose build --no-cache
docker compose up --force-recreate
