Skip to main content
A rollback makes an earlier deployment live again. Pxxl doesn’t rebuild anything: it starts the exact build that ran before, from the copy it stored when that deployment went live. So a rollback is fast, and you get back precisely what was running, even if a dependency has changed since. Rollbacks are on Plus, Pro and Enterprise.

Roll back from the dashboard

1

Open Deployments

Open the project and select the Deployments tab.
2

Pick the deployment

Find the last deployment that worked. Open the ⋯ menu on its row and choose Rollback.
The row menu of a deployment in the Deployments tab, with View logs, View repo, Rebuild same commit, Rollback, Cancel deployment and Copy deployment ID.
3

Watch it go live

The rollback shows as a new deployment. It starts the old build, passes the health check, and traffic switches over with no downtime, like any deployment.

Roll back from the CLI

Without an id, the CLI asks which deployment to make live. When it can’t ask (in CI, or with --yes), it picks the most recent good deployment before the current one. See CLI commands.

What a rollback brings back

  • The pre-deploy command doesn’t run again, so a rollback never re-runs migrations. If the newer deployment changed your database schema, check the old code still works with it.
  • To undo a change to your variables too, use the variables’ History in the Secrets tab. See History and rollback.

How far back you can go

Pxxl keeps each deployment’s build for a while after it’s replaced: Once a build has expired, its Rollback is no longer available. To go back further, use Rebuild same commit, which builds that commit again. Only one rollback can run at a time in a project.

Rollback, rebuild or redeploy?

On GitHub, you can also roll back by reverting the bad commit and pushing. That keeps your Git history and production in step, but it takes a full build.

Stop auto-deploy after a rollback

A rollback doesn’t stop deploys on push. The next push to your branch deploys as normal, so if the bad commit is still on the branch, fix or revert it first. To hold production where it is while you fix it, choose Pause Auto Deployments in the project header menu, or turn off Settings > Deployments > Auto-deploy.