+cf routes
+tail -n +4
+grep federalist
+awk '{print $3" -n "$2}'
+xargs -n 3 cf map-route federalist-B
Creating route federalist.18f.gov for org federalist / space prod as deploy-federalist...
OK
Route federalist.18f.gov already exists
Adding route federalist.18f.gov to app federalist-B in org federalist / space prod as deploy-federalist...
OK
Creating route federalist-prod-elk-proxy.cf.18f.us for org federalist / space prod as deploy-federalist...
OK
Route federalist-prod-elk-proxy.cf.18f.us already exists
Adding route federalist-prod-elk-proxy.cf.18f.us to app federalist-B in org federalist / space prod as deploy-federalist...
OK
Creating route federalist-prod-elk-proxy.18f.gov for org federalist / space prod as deploy-federalist...
OK
Route federalist-prod-elk-proxy.18f.gov already exists
Adding route federalist-prod-elk-proxy.18f.gov to app federalist-B in org federalist / space prod as deploy-federalist...
OK
Creating route federalist-B.cf.18f.us for org federalist / space prod as deploy-federalist...
OK
Route federalist-B.cf.18f.us already exists
Adding route federalist-B.cf.18f.us to app federalist-B in org federalist / space prod as deploy-federalist...
OK
Creating route federalist-B.18f.gov for org federalist / space prod as deploy-federalist...
OK
Route federalist-B.18f.gov already exists
Adding route federalist-B.18f.gov to app federalist-B in org federalist / space prod as deploy-federalist...
OK
Maybe it should grep for federalist.? Seems like this is pretty fragile. Perhaps it could use the host and fallback to name attributes from the manifest?
After running
cf-blue-green
, I see the following:In the logs, I see: