Add client/server split and TTS app
Set up FastAPI server, vanilla UI, and deployment scripts for the TTS app, including DB/ffmpeg wiring and Apache config.
This commit is contained in:
17
server/run.sh
Normal file
17
server/run.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /home/dsyoon/workspace/tts
|
||||
|
||||
PORT="${PORT:-8018}"
|
||||
|
||||
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
|
||||
|
||||
python -m pip install -r requirements.txt
|
||||
|
||||
PORT="${PORT}" nohup uvicorn server.main:app --host 0.0.0.0 --port "${PORT}" > server.log 2>&1 &
|
||||
echo "Server started (PID: $!). Logs: server.log"
|
||||
Reference in New Issue
Block a user