Skip to content

How to deploy safely

Automate the pipeline, gate it with health checks, monitor after the shift, and keep rollback under five minutes.

A deploy that gets out of the way

  1. Automate every step

    Manual steps fail. ./deploy.sh beats a wiki page with twelve steps. Every step that could be code should be code.

  2. Health check before shift

    Serve a /health endpoint. Wait for it to return 200 before sending traffic. Cuts "deployed, users see 502" incidents in half.

  3. Monitor after shift, not just during

    Errors and latencies often surface five minutes after traffic shift. Watch the dashboard after the deploy, not before.

  4. Rollback under five minutes

    A deploy without rollback is a bet. Rollback changes the risk calculus from "hope nothing breaks" to "revert if it does".