forked from amanaiproduct/ai-trip-planner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
Β·40 lines (32 loc) Β· 956 Bytes
/
start.sh
File metadata and controls
executable file
Β·40 lines (32 loc) Β· 956 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
38
39
40
#!/bin/bash
# Trip Planner Startup Script
echo "π Starting AI Trip Planner..."
# Check if we're in the right directory
if [ ! -d "backend" ] || [ ! -d "frontend" ]; then
echo "β Error: Please run this script from the trip_planner directory"
exit 1
fi
echo "π‘ Starting backend server..."
cd backend
uvicorn main:app --host 0.0.0.0 --port 8000 --reload &
BACKEND_PID=$!
echo "Backend started with PID: $BACKEND_PID"
echo ""
echo "β
Service started successfully!"
echo "π‘ Backend API: http://localhost:8000"
echo "π₯οΈ Minimal UI served at / (frontend/index.html)"
echo "π Arize Traces: https://app.arize.com/"
echo ""
echo "Press Ctrl+C to stop the service"
# Function to cleanup when script is interrupted
cleanup() {
echo ""
echo "π Stopping services..."
kill $BACKEND_PID 2>/dev/null
echo "Services stopped."
exit 0
}
# Set up signal handlers
trap cleanup SIGINT SIGTERM
# Wait for services
wait