forked from fspecii/ace-step-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·50 lines (40 loc) · 1023 Bytes
/
start.sh
File metadata and controls
executable file
·50 lines (40 loc) · 1023 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
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Start ACE-Step UI (both frontend and backend)
set -e
# Load environment
if [ -f .env ]; then
export $(cat .env | grep -v '^#' | xargs)
fi
# Check ACE-Step path
if [ ! -d "$ACESTEP_PATH" ]; then
echo "Error: ACESTEP_PATH not set or invalid. Run ./setup.sh first."
exit 1
fi
echo "Starting ACE-Step UI..."
echo "ACE-Step: $ACESTEP_PATH"
echo ""
# Start backend in background
echo "Starting backend on port ${PORT:-3001}..."
cd server
npm run dev &
BACKEND_PID=$!
cd ..
# Wait for backend
sleep 3
# Start frontend
echo "Starting frontend on port ${FRONTEND_PORT:-3000}..."
npm run dev &
FRONTEND_PID=$!
echo ""
echo "=================================="
echo " ACE-Step UI Running"
echo "=================================="
echo ""
echo " Frontend: http://localhost:${FRONTEND_PORT:-3000}"
echo " Backend: http://localhost:${PORT:-3001}"
echo ""
echo "Press Ctrl+C to stop..."
# Handle shutdown
trap "kill $BACKEND_PID $FRONTEND_PID 2>/dev/null; exit" INT TERM
# Wait for processes
wait