#!/bin/sh
set -e

# Get number of workers from environment or default to 1
WORKERS=${UVICORN_WORKERS:-1}

echo "Starting Route Optimization API with ${WORKERS} worker(s)..."

# Start uvicorn
exec uvicorn app.main:app --host 0.0.0.0 --port 8002 --workers ${WORKERS}

