Skip to content

Instantly share code, notes, and snippets.

@seanmtracey
Last active July 3, 2020 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanmtracey/de6d7ce051137d80c31476c6d655333a to your computer and use it in GitHub Desktop.
Save seanmtracey/de6d7ce051137d80c31476c6d655333a to your computer and use it in GitHub Desktop.
#!/bin/bash
cf start "${CF_APP}-green"
cf map-route "${CF_APP}-green" choirless.com -n www
cf map-route "${CF_APP}-green" eu-gb.mybluemix.net -n choirless
cf unmap-route "${CF_APP}" choirless.com -n www
cf unmap-route "${CF_APP}" eu-gb.mybluemix.net -n choirless
cf push "${CF_APP}"
cf map-route "${CF_APP}" choirless.com -n www
cf map-route "${CF_APP}" eu-gb.mybluemix.net -n choirless
cf unmap-route "${CF_APP}-green" choirless.com -n www
cf unmap-route "${CF_APP}-green" eu-gb.mybluemix.net -n choirless
cf push "${CF_APP}-green"
cf stop "${CF_APP}-green"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment