megamind-spark / startup.sh
Janady07's picture
Deploy MEGAMIND SPARK with updated binary
d08b098 verified
raw
history blame contribute delete
491 Bytes
#!/bin/bash
set -e
echo "=== MEGAMIND SPARK 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-spark || true
echo "Tailscale connected"
fi
# Run megamind
echo "Starting MEGAMIND brain..."
exec /app/megamind -config /app/config.json -port 7860