#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"

PORT="${HUSKIES_PORT:-3001}"
echo "=== Starting dev server on port $PORT ==="
cd "$PROJECT_ROOT"
exec env HUSKIES_PORT="$PORT" cargo run
