-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·37 lines (31 loc) · 852 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·37 lines (31 loc) · 852 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
36
37
#!/bin/bash
# Start Runway (backend + frontend)
echo "Starting Runway..."
cd "$(dirname "$0")"
# Ensure Ollama is running
if ! curl -sf http://localhost:11434 > /dev/null 2>&1; then
if command -v ollama > /dev/null 2>&1; then
echo "Starting Ollama..."
ollama serve &
OLLAMA_PID=$!
sleep 2
else
echo "Warning: Ollama not found. AI parsing will fall back to heuristics."
fi
fi
# Start backend (activate venv if present)
cd backend
if [ -d .venv ]; then source .venv/bin/activate; fi
uvicorn app.main:app --port 8000 --reload &
BACKEND_PID=$!
cd ..
# Start frontend
cd frontend
npm run dev &
FRONTEND_PID=$!
cd ..
echo "Backend: http://localhost:8000"
echo "Frontend: http://localhost:5173"
echo "Press Ctrl+C to stop"
trap "kill $BACKEND_PID $FRONTEND_PID ${OLLAMA_PID:-} 2>/dev/null" EXIT
wait