Workflow Deployment

Rollback a Deployment

Emergency rollback process when a deploy goes wrong

deploymentrollbacksafety
CLAUDE.md

When rolling back a deployment:

  1. Confirm the issue is caused by the deployment, not an unrelated outage.
  2. Execute the rollback: redeploy the previous known-good version or switch traffic back to the old deployment.
  3. Verify the rollback: check the health endpoint, error rates, and critical user flows.
  4. If there are database migrations that need reverting, run the down migration carefully.
  5. Notify the team that a rollback occurred and why.
  6. Investigate the root cause on the failed deployment branch. Do not re-deploy until the issue is understood and fixed.

Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.

get crystl