Skip to content

Type a word or two, like firewall or rollback.

Open Coresmith
Browse the docs
Concepts Checked against Coresmith 0.8.46.

How a deploy goes live

Open as Markdown

A deploy builds the new release beside the one that's live. Visitors keep getting the live release the whole time. Only once the new release is built and has passed its check does Coresmith switch to it, and the switch happens in one step.

When a deploy fails

A step can fail at any point before the switch: a dependency that won't install, a build error, a migration that stops. When that happens, nothing changes for visitors. The deploy's log says which step failed and why, and Coresmith emails everyone on the team who can see the app.

After the switch, Coresmith watches the app's processes for a minute. If they keep crashing, or go over the memory the app's size allows, the deploy is marked failed and says why. The new release is live by then, so roll back to the one before while you fix it.

Migrations run before the switch

Migrations run while the previous release still serves visitors. For a moment, the old code runs against the new database schema. Write migrations that the running release can live with: add a column before the code that needs it, and drop a column only after the code that used it is gone.

What a rollback does

Coresmith keeps your last five releases on the server. Rolling back switches to one of them without building anything, so it takes seconds.

A rollback doesn't undo migrations. The database keeps the schema the newest release left it in. If a release changed the schema in a way the older code can't use, fix forward with a new deploy.

One at a time

An app runs one deploy or rollback at a time. A push that arrives during a deploy is deployed once that deploy finishes.

Deploy and roll back covers the buttons and settings.