Skip to Content
ProductionPromoting a Release

Promoting a Release

A Promotion takes what Development holds now and applies it to Production, after a second person has read what will change and approved it.

What a release holds

When you request a Promotion, the platform freezes a numbered Production release:

  • each app’s latest commit on its main branch;
  • each worker’s latest commit on its main branch (a worker still being created, or with no code yet, is left out, and the dry run says so);
  • the version of the Buildpad Engine that Development runs;
  • Development’s structure: collections, fields, relations, roles, policies, access rules, settings and automation.

A release never holds users, records or files. Production keeps its own. A release never changes: what you change in Development after you request it is not part of it.

Requesting a Promotion

Before you request, check three things:

  • Development is running. The platform reads Development while it freezes the release, so a request is refused while Development is stopped (for example by the evening schedule). Start it on the project page. Once the dry run is ready, Development may stop again.
  • Development’s Buildpad Engine is not older than Production’s. Production is set up on the newest Engine. If Development runs an older one, the request is refused and says which version to update to; update Development on its DaaS page, then request again.
  • Nothing in Development waits for review. A change marked pending review is not promoted: see Changes waiting for review.

Open the Production page

Open the project and click Production in the sidebar.

Click Promote

Add a note for the approver if you like, and click Freeze and dry run. On the first Promotion you can also tick Copy the access setup.

Wait for the dry run

The platform freezes the release and compares it with Production. This takes a minute or two.

Changes waiting for review

A coding agent, or a teammate, can add a collection, field or relation to Development and leave it for someone to accept before it goes further. Such a change is marked in its note, which you see in Development’s Studio:

[<who> <reference> · pending review]

For example, an agent writes [xBot job_123 · WI-42 · pending review]: the job that made the change, and the work item it fixes.

Since a release freezes all of Development, a request whose release would hold a marked change is refused while the platform freezes it. The Production page shows Development holds changes that wait for review and lists each marked collection, field or relation with the reference its marker names. No release number is used, and nothing is locked.

Each marked change clears in one of two ways:

  • its owner accepts or rejects it where it was made: accepting removes the marker, rejecting removes the change;
  • a project Admin who must promote sooner removes the marker from the note in Development’s Studio. This is recorded in the Studio’s activity log.

Then click Try the step again: the platform reads Development again and freezes a new release.

Only the bracket form counts. A note that says “pending review” in other words does not stop a Promotion. The Buildpad Engine’s own tables are never checked.

Reading the dry run

The dry run says, before anything changes:

  • Apps: which apps change, from which commit to which.
  • Workers: which workers are added, change or are removed, and any Development worker the release leaves out. The first time a release has workers, the dry run says that the Promotion gives Production its message broker and worker server, and what that costs.
  • Engine: the new version, when the release updates the Buildpad Engine. Production is interrupted for about a minute while it updates.
  • Structure changes: each collection, field, relation, role or other part that is added, changed or removed. A change that removes data or changes a field’s type is marked destructive; when Production’s Engine checks the release, each removal shows how many rows it loses.
  • Automation code: each extension, cron job, custom service or workflow the release adds or changes. Show code opens its code (a workflow’s definition) as a diff against what Production has now: added lines in green with +, removed lines in red with -, and the whole text for one that is new. Settings that changed beside the code, such as a cron job’s schedule or whether it is active, are listed under its name. Long runs of unchanged lines are folded and a long diff shows its first 300 lines; each says how many lines it leaves out and opens on a click.
  • Changed in Production since its last release: structure that someone changed in Production’s Studio. When Production’s Engine checks the release, approving overwrites it with the release; otherwise a Promotion does not undo it, but you should know it is there.
  • Removed in Development, left in Production: see the limits below.
  • Cannot be promoted yet, or Cannot be applied over what Production holds: see below.

The project’s Admins get a notification when the dry run is ready.

Approving

A project Admin other than the requester opens the Production page, reads the dry run, and clicks Approve. For a release with a destructive change, the approver types the project’s name. Read the Automation code section in full: that code runs in Production with the Engine’s rights, and a coding agent working in Development may have been misled by text it read into writing it. To say no, click Reject and give a reason, which the requester sees.

If the dry run is more than 24 hours old, or Production changed since it ran, the platform runs it again first. Read it again, then approve.

The requester, or an approver, can cancel a request until it is approved.

What happens next

The Promotion runs these steps in order. The Production page shows each one.

  1. Back up Production. A first Promotion skips this: there is nothing to lose yet.
  2. Update the Buildpad Engine, when the release needs a newer version. If the update fails, it puts the previous version back by itself.
  3. Apply the structure.
  4. Deploy the apps: each app’s production branch builds the release’s commit.
  5. Deploy the workers: each worker’s production branch is deployed to Production’s worker server. Workers removed in Development are removed from Production.
  6. Verify: the data service, the Studio and each app must answer, each worker must run, and the platform signs in. This step also gives Production any field you added to the Buildpad Engine’s own collections (see below), Development’s XAppHub sign-in settings, and whether each hook, scheduled job and custom service is on or off (see below), then locks Production’s structure again.

When every step passes, the release is live. If deploying or verifying fails, the platform rebuilds the apps and workers at the previous release by itself, and the Promotion ends rolled back with the reason. If another step fails, the Promotion stops and shows the reason; an Admin clicks Try the step again. Nothing else can change Production until then.

The first Promotion

The first Promotion gives Production your whole structure. Production then has no users or records yet: create its administrator’s users and its data in its Studio, or let your app sign people up.

Copy the access setup

When you request the first Promotion, you can tick Copy the access setup. It is off by default and offered with the first Promotion only. Production then also gets:

  • your project’s scope items: the tenants, departments and other nodes beneath your project in Development, with the same ids, so app code and roles that name them work in Production too;
  • the grants at those scope items: a role’s or everybody’s policy at a tenant or department.

It never copies people, the roles people hold, a grant given to one person, or records. People sign in to Production themselves, and an administrator gives them their roles there. The dry run says how many scope items and grants it copies.

Tick it when your app lists tenants or organisations: without them, Production starts with none, and such an app shows nothing to choose until an administrator adds them in Production’s Studio.

Hooks, scheduled jobs and custom services are switched on or off in Production as they were in Development when the release was frozen: see Hooks, scheduled jobs and custom services.

Scope types keep the ids they have in Development, and so do the roles’ allowed scopes and the access rules that name them. App code that finds a scope type by its id works in Production too. A Production first promoted to before 17 November 2026 keeps the ids it was given then: contact Buildpad support if your app needs Development’s.

How the structure is applied

After the first Promotion, how much of a release can be promoted depends on Production’s Buildpad Engine.

When Production’s Engine checks the release. If Production already runs the release’s Engine version, and that version is recent enough, Production’s own Engine compares the release with what Production holds and applies it. Then every structure change is promoted: collections, fields and relations added, changed or removed, and roles, policies, access rules, workflows, hooks, scheduled jobs and custom services. The dry run says Checked by Production’s Engine.

  • A removal is applied, and its rows are gone from Production. The dry run counts them, and the approver types the project’s name.
  • Changes made in Production’s Studio are listed, and approving overwrites them.
  • Production’s structure is locked, and the Promotion applies it anyway; the lock stays.
  • A release that cannot be applied over what Production holds is refused, with the list, under Cannot be applied over what Production holds. For example, Production has its own object under the same identity, or a role names a scope type Production does not have. Change it in Production’s Studio, or contact Buildpad support.
  • The first such Promotion matches the roles, rules, workflows and automation the first Promotion created in Production to Development’s by name, and says how many it matched.

Otherwise (an older Engine, or a release that also updates the Engine), the limits below apply. The next Promotion, on the updated Engine, applies everything.

Updating Production’s Engine

When someone updates Development’s Buildpad Engine on its DaaS page, Production keeps the version it had. From then on, a Promotion can only add collections, fields and relations: a release that changes roles, policies, access rules or permissions is refused under Cannot be promoted yet, and the message says Production runs an older Engine than the release.

To close that gap, update Production’s Engine to Development’s version from the Production page:

  1. If a request was refused for the gap, click Cancel the request.
  2. Click Update Production’s Engine to version. The button shows when Development runs a newer Engine than Production, the first Promotion has been made, and no Promotion is open.
  3. Add a note for the approver if you like, and click Ask for approval.

Someone other than you approves it, as a Promotion: the project’s Admins are told. Once approved, Production is backed up, its Engine is updated (the update takes its own backup and puts the Engine back if it fails), then Production is checked: its Engine and Studio answer, and its structure is locked again. Production’s structure, apps and workers do not change. History lists it as Engine update to version.

Then promote again: with both on the same version, Production’s Engine checks the release and applies every change.

The version must be one this platform offers on the DaaS page’s version list. An Engine cannot be put back to an older version, so a release that needs the older one cannot be rolled back to after the update.

Hooks, scheduled jobs and custom services

Whether each hook, scheduled job and custom service runs is part of what you promote. The verify step of every Promotion switches each one on or off in Production as it was in Development when the release was frozen, matched by name:

  • one that is on in Development is switched on in Production, and one that is off is switched off;
  • one that Production does not have, or a name that two of them share in Development or in Production, is left as it is;
  • a custom service that is a draft or has an error is left as it is.

To stop one in Production, switch it off in Development and promote: Production’s structure is locked, so its Studio refuses the change. If a switch cannot be made, the Promotion still goes live: contact Buildpad support if one does not run in Production as it does in Development.

A Production last promoted to before 23 November 2026 may have them all off. Its next Promotion switches each one as Development has it.

Fields on the Engine’s own collections. A field you add to one of the Buildpad Engine’s own collections, such as a region field on the users collection (daas_users), is not part of the structure the Promotion applies. The verify step of every Promotion creates each such field that Production lacks, with its relation. It never changes or removes a field Production already has.

Limits on an older Engine

On an older Engine, a Promotion after the first adds collections, fields and relations. It cannot change a field’s type, or change roles, access rules, settings or automation: a release with such a change is refused, with the list, under Cannot be promoted yet. Make that change in Development’s and Production’s Studio by hand, update Production’s Engine to Development’s version, or contact Buildpad support.

On an older Engine, a collection, field or relation you remove in Development is not removed from Production. It stays there, with its data, and the dry run lists it under Removed in Development, left in Production. An app that no longer uses it ignores it.

To replace a field without breaking your app, do it in three steps:

  1. Expand: add the new field in Development, and change the app to write both fields and read the new one. Promote.
  2. Release: wait until no user runs the old app.
  3. Contract: change the app to stop using the old field, and remove it in Development. Promote. The old field stays in Production: remove it in Production’s Studio once you are sure you no longer need its data.
Last updated on