nanochat/scripts/local-dev.sh
2026-04-16 11:06:29 -07:00

13 lines
321 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
ENV_FILE="${ROOT_DIR}/.env"
if [[ ! -f "${ENV_FILE}" ]]; then
ENV_FILE="${ROOT_DIR}/.env.example"
echo "Using ${ENV_FILE} because .env is not present."
fi
exec docker compose --env-file "${ENV_FILE}" up --build "$@"