This commit is contained in:
2026-02-09 18:46:37 +09:00
parent b18c9172a4
commit ec0931d14c

19
run.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/dsyoon/workspace/tts
CONDA_BASE="/home/dsyoon/workspace/miniconda3"
source "${CONDA_BASE}/bin/activate" tts
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH:-}"
PORT="${PORT:-8025}"
if lsof -ti tcp:"${PORT}" >/dev/null 2>&1; then
echo "Stopping existing server on port ${PORT}..."
lsof -ti tcp:"${PORT}" | xargs -r kill -9
sleep 1
fi
nohup uvicorn app.main:app --reload --host 127.0.0.1 --port 8025 > server.log &
echo "Server started (PID: $!). Logs: server.log"