Hosts the texttile demo instance on Fly.io from the published image
ghcr.io/texttile-blog/texttile:latest: app texttile-demo on
demo.texttile.blog. The application code lives at
texttile-blog/texttile, and
that repository deploys its own source to a different app,
texttile-staging on staging.texttile.blog. The demo never builds from
source; it runs what was published.
- A push to
mainin this repo deploys. - A daily cron (03:17 Europe/Berlin) redeploys, which pulls the newest image the pinned tag names.
- Run the workflow by hand for an immediate update:
gh workflow run deploy.
fly.toml follows :latest, so every published release reaches the demo on
its next deploy, including new major versions. Every build also carries its
exact version and commit as immutable tags. To hold the demo on one build,
write the exact version (:3.0.4); to follow one major or minor line, use
:3 or :3.0.
The app migrates its database at boot. An update is only: pull image, restart.
All state lives on the Fly volume (/data).
- Copy this repo.
- Run the one-time setup commands from the header of
fly.toml. - Change
appandPHX_HOSTinfly.toml. - Create a deploy token (
fly tokens create deploy -a <name>) and store it as theFLY_API_TOKENsecret of the new repo.