#!/usr/bin/env bash set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$ROOT" if [[ ! -x "$ROOT/.venvs/api/bin/uvicorn" ]]; then echo "API venv 없음. ./scripts/setup_api.sh 실행" exit 1 fi export PYTHONPATH="$ROOT" # shellcheck disable=SC1091 [[ -f "$ROOT/.env" ]] && source "$ROOT/.env" exec "$ROOT/.venvs/api/bin/uvicorn" backend.app.main:app \ --host "${TTS_HOST:-0.0.0.0}" \ --port "${TTS_PORT:-8000}" \ --reload