-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.command
More file actions
executable file
·41 lines (34 loc) · 1.01 KB
/
Copy pathstart.command
File metadata and controls
executable file
·41 lines (34 loc) · 1.01 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
#!/bin/bash
# Find the directory where this script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
echo "=========================================="
echo " Starting EchoFlow Pro Environment"
echo "=========================================="
# Function to handle cleanup on script exit
cleanup() {
echo ""
echo "Shutting down EchoFlow Pro..."
kill $BACKEND_PID 2>/dev/null
kill $FRONTEND_PID 2>/dev/null
exit
}
# Catch Ctrl+C and call cleanup
trap cleanup SIGINT SIGTERM
echo "[1/2] Starting Core Engine (Backend)..."
cd backend
./venv/bin/uvicorn main:app --reload &
BACKEND_PID=$!
cd ..
echo "[2/2] Starting Dashboard (Frontend)..."
cd frontend
npm run dev &
FRONTEND_PID=$!
cd ..
echo "=========================================="
echo "EchoFlow Pro is running!"
echo "Dashboard: http://localhost:3000"
echo "Keep this window open. Close it to stop the app."
echo "=========================================="
# Wait for background processes
wait $BACKEND_PID $FRONTEND_PID