Is there a reason that the CloudFoundry documentation recommends the following steps for Blue-Green deployment (we're in Pivotal CloudFoundry):
When the following steps seem equivalent?
Maybe its uncommon that all the correct routes are added during the push?
Maybe there is an unforeseen side affect to renaming the app that isn't in the documentation? Our APM setup already handles having multiple app names floating around for the few seconds that that will be relevant.
I don't see anything wrong with either approach. There are a handful of ways to do blue/green deployment, so you can pick the one that works best for you and your workflow.
That said, I would suggest using an existing and tested plugin for the cf cli, instead of rolling it yourself. It's not a super complicated process but there are a handful of plugins so if one fits your workload you may as well use it. It'll save you a little time and it's vetted by the community.
Plugin list here -> https://plugins.cloudfoundry.org/
The one that I see used a lot is https://github.com/contraband/autopilot, but that isn't a knock against any of the other plugins.
Hope that helps!