-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·57 lines (44 loc) · 1.2 KB
/
Copy pathdev.sh
File metadata and controls
executable file
·57 lines (44 loc) · 1.2 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Start all development servers for sitegeist and its dependencies
# Usage: ./dev.sh
set -e
echo "Starting development servers..."
echo ""
# Check if required directories exist
if [ ! -d "../pi-mono" ]; then
echo "Error: pi-mono not found at ../pi-mono"
exit 1
fi
if [ ! -d "../mini-lit" ]; then
echo "Error: mini-lit not found at ../mini-lit"
exit 1
fi
# Kill all child processes on exit
trap 'echo ""; echo "Stopping all dev servers..."; kill 0' EXIT INT TERM
# Start dev servers
echo "Starting mini-lit dev server..."
(cd ../mini-lit && npm run dev:tsc) &
MINI_LIT_PID=$!
echo "Starting pi-mono dev server..."
(cd ../pi-mono && npm run dev:tsc) &
PI_MONO_PID=$!
# Wait a moment for dependencies to start building
sleep 2
echo "Starting sitegeist dev server..."
npm run dev &
SITEGEIST_PID=$!
echo "Starting sitegeist site dev server..."
(cd site && ./run.sh dev) &
SITE_PID=$!
echo ""
echo "All dev services started"
echo " mini-lit: watching"
echo " pi-mono: watching"
echo " sitegeist: watching"
echo " site backend: http://localhost:3000"
echo " site frontend: http://localhost:8080"
echo ""
echo "Press Ctrl+C to stop all services"
echo ""
# Wait for all background jobs
wait