Rollbacks
Return to an earlier deploy in under a second, by hand or when a check fails.
Roll back by hand
Every deploy keeps its build in all five regions. handoff rollback points traffic at the previous one. Nothing is rebuilt.
$ handoff rollback --to 1284
✓ Live on deploy 1284
--to <deploy>- Any of the last forty deploys, by number.
--region <code>- Roll back one region and leave the rest.
Roll back automatically
Set a threshold and Handoff watches the first minutes of every deploy. If errors pass it, the previous deploy takes over.
[rollback]
when = "errors > 0.5%"
within = "10 min"
A rollback never touches your database. Keep migrations compatible with the deploy before them.