#!/usr/bin/env bash
# Run the admin server — uses same DB as main canteen-asset-tracker
# CANTEEN_DB_PATH defaults to ../canteen-asset-tracker/assets.db
set -euo pipefail

PORT="${PORT:-8090}"
HOST="${HOST:-0.0.0.0}"

exec python -m uvicorn admin_server:app \
  --host "$HOST" \
  --port "$PORT" \
  --reload \
  --log-level info
