Publishing

A save is a release. Staging goes first.

Save and publish writes a revision and queues one job. A worker on a Mac builds the page with the site's own tools, checks it, and puts it live through cloud Narrative. This page says what each stage does and what stops it.

Illustration: a brick bread oven in a dark stone kitchen with its iron door swung wide open onto a dark interior, a long wooden peel leaning on the brick, and a folded leaf green linen towel on a wooden table.
The stages

One job, ten stages

Each stage reports to the API as it finishes, and the app shows them without being asked. Both books, recipes and cocktails, go through these ten stages.

One job, ten stages
ValidateEvery list entry the recipe points to exists, and the required facts and a photograph are there. A recipe that is missing something stops here and says exactly what. A drink that needs a new photograph must say what the photograph shows, and an ingredient a drink uses must carry the fields the profile requires, its name and category.
WriteThe recipe file is written from the document, and the lists the site keeps are updated.
CompileThe site's compile command runs on the written file.
GenerateThe site's generator builds the pages, and then asks for every scaled amount, metric conversion, and temperature. That table is stored with the revision. When the site has no photograph for the entry, its own render command makes one first. For a drink, a photograph an interrupted job left uncommitted is scanned for lettering before it goes on.
CheckThe site's own tests run.
CommitThe change is committed to the Staging branch and that branch is pushed. The live branch is not touched.
StagingCloud Narrative builds Staging.
Verify StagingHearth checks that the build is of this change, and that the changed pages answer through the gate and carry the recipe's title.
ProductionNarrative promotes Staging to the live branch and builds it. A job asks for the promotion at most once.
Verify liveThe changed pages answer on the live site, or answer as removed for a removal.
Safety

What keeps the live site safe

The publisher is the only part that holds git and Narrative credentials, and it works in a scratch clone.

  • A failure before the commit leaves the site's repository untouched, because nothing is pushed until then.
  • A change reaches the live branch only after Staging passes, and only Narrative's promotion moves that branch.
  • A commit on Staging that Hearth did not make is never replaced. The job stops and names it, and a person decides.
  • One job runs at a time for each book. Saves that arrive while one runs fold into the next.
  • When a job ends in any way, Staging is brought back in line with the live branch, so a failed change does not stay on it.
  • A job that stops says which stage stopped and why, in the app, on the recipe and on the Site screen.
  • A save made through an agent's key takes the same checks and the same ten stages, and the revision records which key wrote it. The key opens none of the publisher's routes.
Progress

Watching it go

The library's site card shows one progress bar while a job runs and keeps the stages folded under a toggle. The Site screen lists every job by where it stands.

The site card

On the library, a running job shows as one bar with the stage that is running. Open the stages to see the line for each.

The Hearth library in its light theme with the site card showing a publish in progress, its leaf green bar, and its stages open.The Hearth library in its light theme with the site card showing a publish in progress, its leaf green bar, and its stages open.
A save on its way to Staging.

The Site screen

Jobs are grouped as going live now, needs you, and recent, with one line for each stage and the publisher's own words for any that stopped.

The Hearth Site screen in its dark theme with a Recent list of two finished publishes, each marked Live.The Hearth Site screen in its dark theme with a Recent list of two finished publishes, each marked Live.
The Site screen, in the dark theme.

The recipe page

The recipe shows its own latest job. When it finishes, the page reloads the entry, because its status and its table of scaled amounts have changed.

A Hearth recipe page in its dark theme with a publish running: the status reads Going live, a leaf green bar fills as stages finish, and the stages are listed under the facts.A Hearth recipe page in its dark theme with a publish running: the status reads Going live, a leaf green bar fills as stages finish, and the stages are listed under the facts.
A recipe while its job runs.
Removal

Remove and restore

Hearth deletes nothing.

  • Remove asks first, and says what is kept: the photograph, every revision, and the record.
  • A removal is a job like any other. The page leaves the site, and its old address is recorded for a redirect.
  • Restore is one button and puts the recipe back.
Contact

Questions about this tool?

Write to Renkara Media Group and a person will answer.