forked from TencentCloudADP/youtu-rag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·36 lines (30 loc) · 878 Bytes
/
start.sh
File metadata and controls
executable file
·36 lines (30 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Youtu-RAG unified startup script
# Provides frontend and backend services
if [ -f .env ]; then
set -a
source .env
set +a
fi
HOST=${SERVER_HOST:-0.0.0.0}
PORT=${SERVER_PORT:-8000}
echo "========================================"
echo " Starting Youtu-RAG..."
echo "========================================"
echo ""
echo "📦 Loading environment variables..."
echo " Host: $HOST"
echo " Port: $PORT"
echo ""
echo "🚀 Starting services..."
echo ""
echo "========================================"
echo " Access URLs"
echo "========================================"
echo "📱 Frontend: http://localhost:$PORT"
echo "📊 Monitor: http://localhost:$PORT/monitor"
echo "========================================"
echo ""
echo "Tip: Press Ctrl+C to stop the service"
echo ""
uv run uvicorn utu.rag.api.main:app --reload --host $HOST --port $PORT