-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·43 lines (36 loc) · 1.04 KB
/
Copy pathstart.sh
File metadata and controls
executable file
·43 lines (36 loc) · 1.04 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
#!/bin/bash
# Clawdini Start Script
set -e
echo "=== Clawdini Start Script ==="
# Check if OpenClaw Gateway is already running
if pgrep -f "openclaw-gateway" > /dev/null 2>&1; then
echo "✓ OpenClaw Gateway already running"
else
echo "→ Starting OpenClaw Gateway..."
openclaw-gateway &
sleep 2
fi
# Change to project root
cd /root/clawdini
# Check if server is already running (using tsx with index.ts)
if pgrep -f "tsx.*src/index.ts" > /dev/null 2>&1; then
echo "✓ Server already running"
else
echo "→ Starting Server..."
cd /root/clawdini/apps/server
nohup npx tsx src/index.ts > /tmp/clawdini-server.log 2>&1 &
sleep 3
fi
# Check if UI is already running
if pgrep -f "vite.*apps/ui" > /dev/null 2>&1; then
echo "✓ UI already running"
else
echo "→ Starting UI..."
cd /root/clawdini/apps/ui
nohup npx vite > /tmp/clawdini-ui.log 2>&1 &
sleep 3
fi
echo "=== All services started ==="
echo "UI: http://localhost:3000"
echo "Server: http://localhost:3001"
echo "Gateway: ws://127.0.0.1:18789"