-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dashboard.sh
More file actions
executable file
·35 lines (28 loc) · 964 Bytes
/
start-dashboard.sh
File metadata and controls
executable file
·35 lines (28 loc) · 964 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
# ============================================
# Start Zero Human Corp — Mission Control
# ============================================
# Usage:
# ./start-dashboard.sh # Run with Node.js directly
# ./start-dashboard.sh --docker # Run via Docker
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "📊 Starting Zero Human Corp — Mission Control"
echo ""
if [ "$1" = "--docker" ] || [ "$1" = "-d" ]; then
echo "Starting via Docker..."
docker compose up -d dashboard
echo ""
echo "Dashboard: http://localhost:${DASHBOARD_PORT:-4200}"
echo "Logs: docker compose logs -f dashboard"
else
cd "$SCRIPT_DIR/dashboard"
# Install deps if needed
if [ ! -d node_modules ]; then
echo "Installing dependencies..."
npm install
fi
echo "Dashboard: http://localhost:${DASHBOARD_PORT:-4200}"
echo ""
PORT="${DASHBOARD_PORT:-4200}" ZHC_ROOT="$SCRIPT_DIR" node server.js
fi