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