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
- Apply migrations on staging and run the exact built version.
- Complete site creation, editing, publishing and signing in again.
- Confirm the previous code version is compatible with the current schema.
- In production, apply migrations as a controlled stage, then update processes.
- 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
| Failure | Action |
|---|---|
| Image will not build | Keep the working version; fix the build |
| Migration will not apply | Stop the release; establish actual schema state |
| New API breaks operation | Restore the verified artifact if the schema is compatible |
| One landing page is broken | Switch its publication to the previous version |
| Data or files are lost | Perform 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.