Skip to content

Platform release and rollback ​

A proposed release is successful when new code works with the data and existing publications remain available.

Code rollback, site rollback and database recovery are different operations.

The process below needs implementation and rehearsal on staging. Only documentation auto-deployment is confirmed today.

Before release ​

Record the commit and built artifact. Install dependencies with a frozen lockfile, run existing lint/build scripts in affected packages; for the API use bun run test, which runs Jest. Generation checks must cover job retries, worker failure, preservation of the previous publication and denied access to another project.

Review schema changes and backup availability. Migrations must remain compatible with the intended rollback version. The proposed sequence is to add compatible structure, migrate data, then remove obsolete structure in a separate release.

Release ​

  1. Apply migrations on staging and run the exact built version.
  2. Complete site creation, editing, publishing and signing in again.
  3. Confirm the previous code version is compatible with the current schema.
  4. In production, apply migrations as a controlled stage, then update processes.
  5. Check database, storage, worker, a test publication and HTTPS.

The existing container runs migrations at startup. Revisit this before multiple replicas: migration release must not depend on incidental restart order.

If something fails ​

FailureAction
Image will not buildKeep the working version; fix the build
Migration will not applyStop the release; establish actual schema state
New API breaks operationRestore the verified artifact if the schema is compatible
One landing page is brokenSwitch its publication to the previous version
Data or files are lostPerform separate recovery; do not call redeployment recovery

Column deletion and data transformation may make ordinary rollback impossible. A recovery plan must exist before such a change.

Completion criterion ​

The author opens a saved project, edits and publishes it. A visitor sees a complete page at the existing link. A retry test does not create a duplicate project. Record the release result with its commit, migrations and discovered limitations.

Bonsite — small websites for your big ideas.