forked from zeroclaw-labs/zeroclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_dashboard.sh
More file actions
35 lines (30 loc) Β· 989 Bytes
/
run_dashboard.sh
File metadata and controls
35 lines (30 loc) Β· 989 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
#!/bin/bash
# Quick setup script to run ZeroClaw web dashboard
echo "π¦ ZeroClaw Web Dashboard Setup"
echo "================================"
# Check if web assets are built
if [ ! -d "web/dist" ]; then
echo "π¦ Building web assets first..."
cd web
npm run build
cd ..
echo "β
Web assets built!"
fi
# Build the project
echo "π¨ Building ZeroClaw binary with embedded web dashboard..."
cargo build --release
# Check if build was successful
if [ -f "target/release/zeroclaw" ]; then
echo "β
Build successful! Web dashboard is embedded in the binary."
echo ""
echo "π Starting ZeroClaw Gateway..."
echo "π± Dashboard URL: http://127.0.0.1:3000/"
echo "π§ API Endpoint: http://127.0.0.1:3000/api/"
echo "βΉοΈ Press Ctrl+C to stop the gateway"
echo ""
# Start the gateway
./target/release/zeroclaw gateway --open-dashboard
else
echo "β Build failed! Please check the error messages above."
exit 1
fi