Skip to content

Hosting: move the reader-facing site off the Mac Studio — host choice (Mac mini recommended), release build, and the pins to lift (absorbs #199, #229, #232) #252

Open

Description

@holden

The reader-facing site runs today as the owner's development server on the Mac Studio, reached through an ngrok tunnel (wordhoard.eu.ngrok.io). #250 asked whether that should stay so; the owner's answer on 21 October 2026 was: eventually move it, decide the host first. This issue holds the decision and the work. It absorbs #199 (Mac mini handoff), #229 and #232 (Linux gaps in dd.bootstrap.cluster).

What the dictionary needs from a host

What is on the network (inventoried 21 October 2026)

Machine Hardware Already runs Free disk
Mac Studio M4 Max, 64 GB the dictionary dev server (published host), Postgres 18 on 5434, Ollama 1.4 TB external
Mac mini (holdens-Mini, 192.168.1.205) M4, 10 cores, 16 GB, 228 GB SSD CineGraph, RecordTemple, Pokevestment under kamal-proxy; Homebrew Postgres 18, pgbouncer, redis; Docker; Plex 50 GB
Argus NUC7i3BNH (argus.local) i3-7100U, 2 cores / 4 threads, 30 GB, Ubuntu 26.04 Argus under kamal, Postgres 18, pgbouncer; load ≈ 5 1.6 TB
TrueNAS NAS storage only —

Recommendation

  1. Site and Postgres on the Mac mini. It already hosts three apps the same way (kamal-proxy, Homebrew Postgres 18, SSH), and the dictionary's migration tooling from Repeatable dictionary migration: prove external setup against the retained working baseline #211 (dd.bundle, dd.bootstrap, dd.doctor, LaunchAgents) is macOS-native, so this is the least new work. Disk is the one constraint: 50 GB free is enough for the site but not for models too; add an external SSD or move the Plex library first.
  2. Not the NUC. Two cores already saturated by Argus, no usable GPU, and Linux reopens Linux server deployment: dd.bootstrap.cluster must set or provision the socket directory Debian moves to /var/run/postgresql (deferred from #228) #229 and dd.bootstrap.cluster leaves lc_messages, lc_monetary, lc_numeric and lc_time at C; record and apply the source cluster's values (from #211 stage 4) #232.
  3. Curation stays on the Studio until measured on the mini (Local curation portability: measured Mac Studio to Mac Mini handoff #199's rule: no promised throughput before measurement). A 9B model fits beside the mini's other apps in 16 GB, but only just.
  4. A third machine only if the panels grow: Apple silicon so the runtime moves unchanged (a Mac mini M4 Pro with 48–64 GB and 2 TB). A Linux box with a 24 GB GPU is cheaper per token but means rebuilding the runtime.

What the code needs before any host (found in the 21 October audit)

Phases

  • Decide: host (mini recommended), domain, whether reviewers log in on it, whether registration stays open.
  • Prepare the mini: disk (external SSD or move Plex), a devils_dictionary cluster or database on its Postgres 18, the twelve provider variables, a secret key base.
  • Build: mix release + mix assets.deploy; lift the :public_routing pin and move the published-host settings to runtime config for :prod; decide which of Routing: everything left to close #194 — Stage 5 publication behind a feature flag, then the reviewer tool (after #224) #237's guards to keep (operator pages 404 publicly stays).
  • Restore: mix dd.bundle --verify and mix dd.bootstrap --mode init from the latest released bundle, then ANALYZE (a fresh restore has no planner statistics).
  • Cut over: domain and TLS to the mini, the Studio's tunnel and DD_PUBLISHED_HOST turned off, the dev server back to a plain development server.
  • Later, measured: curation runtime on the mini (Local curation portability: measured Mac Studio to Mac Mini handoff #199's checklist, now here), or a third machine.

Decisions only the owner can make

Host, domain name (#192), reviewer login on the public host, open registration, and whether to buy a third machine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions