-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-services.sh
More file actions
executable file
·39 lines (30 loc) · 1.14 KB
/
Copy pathstart-services.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1.14 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
#!/bin/bash
# Start all DevBoard services
cd /home/mind-protocol/ai_devboard
echo "Starting DevBoard services..."
# Kill any existing
pkill -f "node server.js" 2>/dev/null
pkill -f "node watcher.js" 2>/dev/null
pkill -f "node mention-watcher.js" 2>/dev/null
sleep 1
# Start API server
node server.js > /tmp/devboard-server.log 2>&1 &
echo " API server: PID $! (port 3001)"
# Start file watcher
node watcher.js > /tmp/devboard-watcher.log 2>&1 &
echo " File watcher: PID $! (graph updates)"
# Start mention watcher
node mention-watcher.js > /tmp/devboard-mentions.log 2>&1 &
echo " Mention watcher: PID $! (citizen dispatch)"
# Start Vite dev server
npx vite --port 3000 > /tmp/devboard-vite.log 2>&1 &
echo " Vite frontend: PID $! (port 3000)"
echo ""
echo "All services started. Logs in /tmp/devboard-*.log"
echo " Server: tail -f /tmp/devboard-server.log"
echo " Watcher: tail -f /tmp/devboard-watcher.log"
echo " Mentions: tail -f /tmp/devboard-mentions.log"
echo " Vite: tail -f /tmp/devboard-vite.log"
# Start swarm driver
node swarm.js --interval 60 > /tmp/devboard-swarm.log 2>&1 &
echo " Swarm driver: PID $! (task dispatch every 60s)"