Switch traffic after health checks pass on the new environment.

Section: Deployment strategy snippets

Blue/green deploy flow

bash
bash
./deploy-new-stack.sh
./run-health-checks.sh https://green.example.com
./switch-traffic.sh green
./monitor-release.sh
Explanation

Blue/green is a deployment pattern rather than a platform feature. Encode the steps in your chosen CI/CD system.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Deployment strategy snippets
Staging then production promotion
Require staging verification before production deploy.
OpenIn sheetyamlsame section
Manual production gate in GitLab
Add a human approval step before production deployment.
OpenIn sheetyamlsame section
Multi-stage GitHub Actions workflow
Separate lint, test, build, and deploy into distinct jobs.
GitLab stage ordering
Use explicit stages for predictable progression.
Always archive reports and clean up
Preserve artifacts even when the pipeline fails.