Sites
Staging and promote
Copy a site to staging, test it and promote it to production.
๐งช Creating a staging site
Deploy Settings โ Staging / preview โ Create staging site creates a copy of the site's configuration at staging.<domain>, named <name> (staging) and tagged staging. It uses the same stack, server, repository, branch and hooks.
It is created as a configuration only: provision it and deploy it like any new site, point staging.<domain> to the server and give it its own .env and database. The Git token is not copied, so add it again for private repositories. The health check is off on staging.
A site can have one staging copy, and a staging site cannot have its own staging copy.
๐ Promote to production
When staging looks good, Promote (admin) deploys exactly the commit that is live on staging to production โ not "whatever the branch points to now".
- Preview shows the commit that would be promoted and what production runs today.
- Optionally tick Back up the production database first. If the backup fails, the promotion stops.
- Promote runs a normal production deploy pinned to that commit โ with production's own hooks, test gate and health check.
The promotion is refused when:
- production is not active, or uses a different repository;
- staging has no successful deploy;
- a deploy is running or queued on either site.
It asks for an explicit confirmation when production already runs that commit, or when staging was rolled back since the commit was deployed.
Tip. Promote never queues: if production is busy, wait for its deploy to finish and promote again.