forked from humanxtech/SmartArchitect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.sh
More file actions
38 lines (31 loc) · 780 Bytes
/
Copy pathstart-dev.sh
File metadata and controls
38 lines (31 loc) · 780 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
#!/bin/bash
echo "Starting SmartArchitect AI Development Environment..."
echo ""
# 启动后端
echo "[1/2] Starting Backend..."
cd backend
source venv/bin/activate
python -m app.main &
BACKEND_PID=$!
cd ..
# 等待后端启动
sleep 2
# 启动前端
echo "[2/2] Starting Frontend..."
cd frontend
npm run dev &
FRONTEND_PID=$!
cd ..
echo ""
echo "========================================"
echo "SmartArchitect AI is running!"
echo "========================================"
echo "Frontend: http://localhost:3000"
echo "Backend: http://localhost:8003"
echo "API Docs: http://localhost:8003/docs"
echo "========================================"
echo ""
echo "Press Ctrl+C to stop all services"
# 等待信号
trap "kill $BACKEND_PID $FRONTEND_PID; exit" SIGINT SIGTERM
wait