- commit
- 4d442771dd091c430f3315ee6204efbc4986e235
- parent
- 42c1db7a8e2297d6fc7c6f4e582de116d4ad68b7
- author
- dami <gazey55@gmail.com>
| M | deploy.md | 24 | +++++++++++++++++++----- |
@@ -1,10 +1,21 @@
11 # Deploying the daily22 33 One machine on Fly.io runs the Deno site with the Go engine as a4-subprocess; everything persistent (games, generator cache, day archives,5-the days index) lives on the `/data` volume. Generation is offline: the6-day's field and all its growth rings are generated ahead (cached), and7-daytime growth only reveals a stored ring.4+subprocess for judging only; everything persistent (games, day archives,5+the days index, pushed fields) lives on the `/data` volume. **The engine6+never generates on that machine** (a chunk process was measured at7+2.1 GB RSS; the machine has 2 GB): each day's field, with its growth8+rings, is generated on the Mac and pushed:9+10+```11+cd site && deno task push-day 2026-08-28 # tomorrow, before 00:00 UTC12+```13+14+(`--rings 2` by default, 3x3 chunks of G=60 on a G=1000 canvas, ~4 MB,15+~30 min on a loaded Mac, ~3 min idle.) The token is in16+`~/.config/mosaic/push-token` (the `MOSAIC_PUSH_TOKEN` secret on Fly).17+A day with nothing pushed shows "no field for <date> yet" on `/`.18+`MOSAIC_GENERATE=1` would let the box generate; it is off in fly.toml.819 920 ## First time1021 @@ -37,7 +48,10 @@ fly deploy
3748 `prepared <date>` once tomorrow's field is generated.3849 - `curl https://mosaic-daily.fly.dev/leaderboard/<date>` returns both boards.3950 - A restart (`fly machines restart`) resumes today's game from its log at40- the same revision.51+ the same revision (proven 2026-08-27: revision 179 before, 179 after,52+ play continued).53+- Live: https://mosaic-daily.fly.dev/ (ams, shared-cpu-2x, 2 GB, 1 GB54+ volume; about $11/month at Fly's list prices).4155 4256 ## Playing against it4357