AishwaryaNJ's picture
Add comprehensive tests for pricing engine and API endpoints
1e11bce
Raw
History Blame Contribute Delete
337 Bytes
#!/usr/bin/env bash
set -euo pipefail
PROJECT_DIR="${PROJECT_DIR:-/opt/dynamic-pricing-engine}"
VENV_DIR="${VENV_DIR:-$PROJECT_DIR/.venv}"
HOST="${HOST:-0.0.0.0}"
PORT="${PORT:-8000}"
WORKERS="${WORKERS:-1}"
cd "$PROJECT_DIR"
source "$VENV_DIR/bin/activate"
exec uvicorn app.api:app --host "$HOST" --port "$PORT" --workers "$WORKERS"