-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRunTaskBench.sh
More file actions
executable file
Β·53 lines (45 loc) Β· 1.33 KB
/
RunTaskBench.sh
File metadata and controls
executable file
Β·53 lines (45 loc) Β· 1.33 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# LLM TaskBench - One-command startup script
set -e
echo "π Starting LLM TaskBench..."
echo ""
# Check if .env exists
if [ ! -f .env ]; then
echo "β οΈ No .env file found. Creating from .env.example..."
cp .env.example .env
echo "β
Created .env file"
echo ""
echo "π Please edit .env and add your API keys:"
echo " - OPENROUTER_API_KEY"
echo " - ANTHROPIC_API_KEY (optional, for quality check generation)"
echo ""
read -p "Press Enter after updating .env file..."
fi
# Check if Docker is running
if ! docker info > /dev/null 2>&1; then
echo "β Docker is not running. Please start Docker and try again."
exit 1
fi
echo "π¦ Building and starting services..."
docker-compose up --build -d
echo ""
echo "β³ Waiting for services to be healthy..."
sleep 5
# Check service health
echo ""
echo "π Checking service status..."
docker-compose ps
echo ""
echo "β
LLM TaskBench is running!"
echo ""
echo "π Access points:"
echo " - Frontend UI: http://localhost:9999"
echo " - Backend API: http://localhost:8000"
echo " - API Docs: http://localhost:8000/docs"
echo ""
echo "π Useful commands:"
echo " - View logs: docker-compose logs -f"
echo " - Stop services: docker-compose down"
echo " - Restart: docker-compose restart"
echo ""
echo "π Happy benchmarking!"