# Production and rollbacks (/ship/production-and-rollbacks)

Production is whichever deployment you published last. Every deployment is kept, so you can put an older one back at any time.

## Roll back [#roll-back]

Open **Deployments** and find the deployment you want live again.

Open its menu and select **Promote to Production**.

The dialog says **Roll back production**: an earlier deployment becomes live again. Nothing is rebuilt: the old build is still there. Confirm with **Roll back**.


## Undo a publish [#undo-a-publish]

Straight after you publish or roll back, the message that confirms it has an undo. It puts the previous deployment back: **Reverted to the previous deployment**.

## Rolling back production vs rolling back code [#rolling-back-production-vs-rolling-back-code]

- **Rolling back production** changes what visitors see. Your code doesn't change: your next deployment still has your latest changes.
- **Rolling back code** in [Versions](/build/code-and-versions) changes what you build on. It doesn't change what's live until you deploy and publish.

To fix a bad release quickly, roll back production first, then fix the code at your own pace.
