-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.sh
More file actions
36 lines (30 loc) · 886 Bytes
/
start-dev.sh
File metadata and controls
36 lines (30 loc) · 886 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
#!/bin/bash
echo "==================================="
echo "Face Recognition System - Dev Mode"
echo "==================================="
echo ""
echo "Starting Backend and Frontend..."
echo ""
# 백그라운드에서 백엔드 실행
cd backend
python server.py &
BACKEND_PID=$!
cd ..
# 백그라운드에서 프론트엔드 실행
cd frontend
npm run dev &
FRONTEND_PID=$!
cd ..
echo ""
echo "==================================="
echo "Servers are running!"
echo "==================================="
echo "Backend: http://localhost:8000"
echo "Frontend: http://localhost:5173"
echo "==================================="
echo ""
echo "Press Ctrl+C to stop all servers..."
# Ctrl+C 시그널 처리
trap "echo ''; echo 'Stopping servers...'; kill $BACKEND_PID $FRONTEND_PID 2>/dev/null; echo 'All servers stopped.'; exit" INT
# 프로세스가 종료될 때까지 대기
wait