sota.io

sota rollback

Revert to the previous deployment instantly without rebuilding.

Usage

sota rollback

How It Works

Rollback swaps the running container back to the previous deployment's Docker image. There is no rebuild -- the old image is still available on the server.

$ sota rollback

Rolling back my-app...
Swapping to previous deployment...
Health check passed.

Rolled back to https://my-app.sota.io

What Happens

  1. The previous deployment's container image is started
  2. Health checks run against the new container
  3. Traefik traffic is swapped (blue-green)
  4. The failed container is stopped and cleaned up

Limitations

  • You can only roll back to the immediately previous deployment
  • Rollback does not change environment variables (they persist across deployments)
  • If the previous deployment also had issues, you will need to fix and redeploy