From 9f3d0b639ac118d9ebf9594e6e3fd63a0dc9df1d Mon Sep 17 00:00:00 2001 From: Michael Freytag Date: Tue, 5 Aug 2025 06:40:45 -0700 Subject: [PATCH 1/2] fix(blue-green): grammatical errors --- deploy-apps/blue-green.html.md.erb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/deploy-apps/blue-green.html.md.erb b/deploy-apps/blue-green.html.md.erb index b911ead3..a6c4ea83 100644 --- a/deploy-apps/blue-green.html.md.erb +++ b/deploy-apps/blue-green.html.md.erb @@ -13,9 +13,8 @@ serving all production traffic. For the example discussed here, Blue is live and Green is idle. As you prepare a new version of your software, deployment and the final stage of testing takes place in the environment that is not live: in this example, Green. -After deploy and fully tested the software in Green, you switch the -router so that all incoming requests now go to Green instead of Blue. -Green is now live, and Blue is idle. +After deploying and fully testing the software in Green, you switch the router +so that all incoming requests now go to Green instead of Blue. This technique can eliminate downtime due to app deployment. In addition, blue-green deployment reduces risk: if something unexpected happens @@ -25,7 +24,7 @@ version by switching back to Blue. You can adjust the route mapping pattern to display a static maintenance page during a maintenance window for time-consuming tasks such as migrating a database. In this scenario, the router switches all incoming requests from Blue to Maintenance to Green.

-If your app uses a relational database, blue-green deployment can lead to discrepancies between your green and glue databases during an update. To maximize data integrity, configure a single database for backward and forward compatibility.

+If your app uses a relational database, blue-green deployment can lead to discrepancies between your green and blue databases during an update. To maximize data integrity, configure a single database for backward and forward compatibility.

## Blue-green deployment with Cloud Foundry example @@ -56,7 +55,7 @@ As shown in the graphic: Now make a change to the app. 1. Replace the word "Blue" on the webpage with "Green," then rebuild the source file for the app. -1. Run `cf push` again, but use the name "Green" for the app and provide a different subdomain to create a temporary route: +2. Run `cf push` again, but use the name "Green" for the app and provide a different subdomain to create a temporary route:
 $ cf create-route example.com --hostname demo-time-temp
@@ -68,7 +67,7 @@ After this push:
 
 * Two instances of the app are now running on Cloud Foundry: the original Blue and the updated Green.
 * The Cloud Foundry Router continues sending all traffic for `demo-time.example.com` to Blue.
-The router now also sends any traffic for `demo-time-temp.example.com` to Green.
+The router also sends any traffic for `demo-time-temp.example.com` to Green.
 
 ![The CF Router directs traffic to both Blue and Green sides.](../images/blue-green/blue-green.png)
 
@@ -110,7 +109,7 @@ Now all traffic for `demo-time.example.com` is sent to Green.
 
 ### Step 5: Remove temporary route to Green
 
-You can now use `cf unmap-route` to remove the route `demo-time-temp.example.com` from Green. You can delete the route using `cf delete-route` or reserved it for later use. You can also decommission Blue, or keep it in case you need to roll back your changes.
+You can now use `cf unmap-route` to remove the route `demo-time-temp.example.com` from Green. You can delete the route using `cf delete-route` or reserve it for later use. You can also decommission Blue, or keep it in case you need to roll back your changes.
 
 ![After all traffic is routed to Green, the Blue side can be removed or replaced.](./images/../../images/blue-green/green.png)
 

From 638fe93e67b59bf154eba7859e4d0cf559ff97fb Mon Sep 17 00:00:00 2001
From: Michael Freytag 
Date: Tue, 5 Aug 2025 06:43:21 -0700
Subject: [PATCH 2/2] fix: add line 18 back in

---
 deploy-apps/blue-green.html.md.erb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/deploy-apps/blue-green.html.md.erb b/deploy-apps/blue-green.html.md.erb
index a6c4ea83..ac0f6f35 100644
--- a/deploy-apps/blue-green.html.md.erb
+++ b/deploy-apps/blue-green.html.md.erb
@@ -15,6 +15,7 @@ As you prepare a new version of your software, deployment and the final stage of
 testing takes place in the environment that is not live: in this example, Green.
 After deploying and fully testing the software in Green, you switch the router
 so that all incoming requests now go to Green instead of Blue.
+Green is now live, and Blue is idle.
 
 This technique can eliminate downtime due to app deployment.
 In addition, blue-green deployment reduces risk: if something unexpected happens