evOo-local/scripts/start-tmux.sh
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

40 lines
1.6 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
DIR="/Users/ingowagner/evOo"
SESSION="evoo"
export PATH="/Users/ingowagner/.nvm/versions/node/v22.22.0/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
# Check if session already exists
if /opt/homebrew/bin/tmux has-session -t "$SESSION" 2>/dev/null; then
echo "⚠️ tmux session '$SESSION' is already running!"
echo "👉 Attach using: tmux attach -t $SESSION"
exit 0
fi
echo "🚀 Starting evOo in background tmux session '$SESSION'..."
# Create session with platform window
/opt/homebrew/bin/tmux new-session -d -s "$SESSION" -n "platform" -c "$DIR"
/opt/homebrew/bin/tmux send-keys -t "$SESSION:platform" 'export PATH="/Users/ingowagner/.nvm/versions/node/v22.22.0/bin:/opt/homebrew/bin:/usr/local/bin:$PATH" && pnpm dev' C-m
# Create sentinel window
/opt/homebrew/bin/tmux new-window -t "$SESSION" -n "sentinel" -c "$DIR"
/opt/homebrew/bin/tmux send-keys -t "$SESSION:sentinel" 'export PATH="/Users/ingowagner/.nvm/versions/node/v22.22.0/bin:/opt/homebrew/bin:/usr/local/bin:$PATH" && pnpm exec tsx scripts/autonomous-sentinel.ts' C-m
# Set active window back to platform
/opt/homebrew/bin/tmux select-window -t "$SESSION:platform"
echo "✅ evOo successfully started in tmux session '$SESSION'!"
echo ""
echo "📱 iPhone Access:"
echo " - WLAN: http://192.168.0.205:5173"
echo " - Tailscale: http://100.127.149.82:5173"
echo ""
echo "🔍 Management Commands:"
echo " - Logs ansehen: tmux attach -t $SESSION"
echo " - Aus tmux raus: Ctrl+b gefolgt von d (Session läuft weiter!)"
echo " - Fenster wechseln in tmux: Ctrl+b gefolgt von 0 (Platform) oder 1 (Sentinel)"
echo " - Komplett stoppen: bash scripts/stop-tmux.sh"