-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
路36 lines (27 loc) 路 1.07 KB
/
Copy pathdev.sh
File metadata and controls
executable file
路36 lines (27 loc) 路 1.07 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
#!/bin/bash
# ==============================================================================
# Development Launcher
# Starts both the Julia API server and the React Vite development server.
# Pressing Ctrl+C will kill both processes.
# ==============================================================================
# Cleanup function
cleanup() {
# 1. Reset the trap to prevent infinite recursion
trap - INT TERM ERR EXIT
echo -e '\n馃洃 Shutting down both servers...'
# 2. Kill all processes in the current process group
kill 0
}
# Bind the cleanup function to the signals
trap cleanup INT TERM ERR EXIT
JULIA_CMD="julia"
if [ -f "sys_gridaproms.so" ]; then
echo "馃摝 Custom sysimage detected. Booting with extreme speed..."
JULIA_CMD="julia --sysimage=sys_gridaproms.so"
fi
echo "馃殌 [1/2] Starting Julia API Server on port 8080..."
$JULIA_CMD scripts/server_dashboard.jl &
echo "馃帹 [2/2] Starting React Vite Server on port 5173..."
cd dashboard && npm run dev &
# Wait for both background processes to finish (or for user to press Ctrl+C)
wait