forked from TencentCloudADP/youtu-graphrag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
29 lines (21 loc) · 732 Bytes
/
Copy pathstart.sh
File metadata and controls
29 lines (21 loc) · 732 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
#!/bin/bash
echo "🌟 Starting Youtu-GraphRAG Server..."
echo "=========================================="
# Check if required files exist
if [ ! -f "backend.py" ]; then
echo "❌ backend.py not found. Please run this script from the project root directory."
exit 1
fi
if [ ! -f "frontend/index.html" ]; then
echo "❌ frontend/index.html not found."
exit 1
fi
# Kill any existing backend processes
echo "🔄 Checking for existing processes..."
pkill -f backend.py 2>/dev/null || true
# Start the backend server
echo "🚀 Starting backend server..."
echo "🛑 Press Ctrl+C to stop the server"
echo "=========================================="
python backend.py
echo "👋 Youtu-GraphRAG server stopped."