-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·35 lines (29 loc) · 817 Bytes
/
start.sh
File metadata and controls
executable file
·35 lines (29 loc) · 817 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
# RealBench Pro startup script
echo "🎯 RealBench Pro - Starting..."
# Check if .env exists
if [ ! -f backend/.env ]; then
echo "⚠️ No .env file found. Creating from template..."
cp backend/.env.example backend/.env
echo "📝 Please edit backend/.env and add your API keys"
exit 1
fi
# Check for Python
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is required but not installed."
exit 1
fi
# Check for dependencies
cd backend
if [ ! -d ".venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv .venv
source .venv/bin/activate
echo "📦 Installing dependencies..."
pip install -r requirements.txt
else
source .venv/bin/activate
fi
# Start the server
echo "🚀 Starting FastAPI server..."
python app/main.py