#!/bin/sh
set -eu

ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$ROOT"

export PYTHONPATH="${PYTHONPATH:-.}"
export PLAYWRIGHT_BROWSERS_PATH="${PLAYWRIGHT_BROWSERS_PATH:-$ROOT/.playwright}"

exec uv run --frozen --no-dev --group runtime --group ml \
  python -m uvicorn dashboard.server:app --host 0.0.0.0 --port "${PORT:-3088}"
