Repository navigation
Production Bootstrap
roto31 edited this page Nov 26, 2026
·
3 revisions
Goal: a brand-new Mac gets a Studio-class StreamTV server without copying lab-specific settings (LAN IPs, TunarrRAM paths, Plex dvr_id, private fleet YAML).
flowchart LR
DMG["Signed DMG / clone"] --> Loc{"Install location"}
Loc -->|Standard| AppSup["Application Support"]
Loc -->|Advanced| Repo["Existing repo + venv"]
AppSup --> Seed["Seed config.example.yaml"]
Repo --> Seed
Seed --> Agents["LaunchAgents"]
Agents --> Samples{"Optional sample packs?"}
Samples -->|yes| Import["Import sample channels"]
Samples -->|no| Auth["Source auth + MCP"]
Import --> Auth
Auth --> Gate["Plex AAC gate if PMS present"]
Gate --> Done["SetupDone"]
Done --> KeepWarm["Optional: SSD cache + prewarm"]
KeepWarm --> Trouble["Settings → Troubleshooting"]
After SetupDone, see Streaming-Resilience-Ops for SSD keep-warm / pre-warm LaunchAgent.
| Piece | Behavior |
|---|---|
| Config | Seeded from config.example.yaml (base_url localhost) |
| venv + deps | Application Support (app) or existing repo venv (advanced) |
| yt-dlp | Floor / tip ensure |
com.streamtv |
LaunchAgent — WorkingDirectory = chosen workdir |
com.streamtv.ytdlp-upgrade |
Weekly upgrade agent |
| TunarrRAM heal | Only if /Volumes/TunarrRAM already exists |
| Plex AAC | Hard gate when PMS is detected |
| Sample channels | Optional curated packs in product builds (not published as public channel inventory) |
-
Standard:
~/Library/Application Support/StreamTV -
Advanced: user-selected repo path — must already contain
venv/and importablestreamtv
- Lab workdirs, LAN base URLs, cookies, private fleet YAML
- Studio LaunchAgent environment overrides (
STREAMTV_CACHE_YOUTUBE_FULL_CACHE, etc.)
- Mount TunarrRAM → install heal agent → enable
youtube_full_cacheif desired. - Set Plex hosts for your LAN.
- Add StreamTV as HDHomeRun in Plex; reload guide after lineup exists.
- Import your own channel packs (Channel-Pack-GitOps).
Canonical: PRODUCTION_BOOTSTRAP_UNIVERSAL.md · First-Run-Setup.