megamind-vector / startup.sh
Janady07's picture
Deploy MEGAMIND VECTOR with updated binary
c7348d5 verified
raw
history blame contribute delete
493 Bytes
#!/bin/bash
set -e
echo "=== MEGAMIND VECTOR Starting ==="
# Start Tailscale daemon in background
if [ -n "$TS_AUTHKEY" ]; then
echo "Starting Tailscale..."
tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/var/run/tailscale/tailscaled.sock &
sleep 3
tailscale up --authkey=$TS_AUTHKEY --hostname=megamind-vector || true
echo "Tailscale connected"
fi
# Run megamind
echo "Starting MEGAMIND brain..."
exec /app/megamind -config /app/config.json -port 7860