Skip to content

Instantly share code, notes, and snippets.

@alkema
Created January 12, 2016 19:24
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 alkema/1c8c4cfc21a35a039a0b to your computer and use it in GitHub Desktop.
Save alkema/1c8c4cfc21a35a039a0b to your computer and use it in GitHub Desktop.
https://en.wikipedia.org/wiki/List_of_kings_of_Sparta
http://sparta-dion.herokuapp.com/
@alkema
Copy link
Author

alkema commented Jan 12, 2016

Staging Servers

We are using names of Spartan kings : https://en.wikipedia.org/wiki/List_of_kings_of_Sparta

Convention

Heroku App name

sparta-<SPARTAN_KING>.herokuapp.com

CNAME

sparta-<SPARTAN_KING>.zozi.com

Git remote setup

heroku git:remote --app sparta-<SPARTAN_KING> --remote <SPARTAN_KING>
heroku git:remote --app sparta-dion --remote dion

Pushing feature branch to staging instance

git push dion setup_project:master

Set a particular remote to be default for Heroku

git config heroku.remote dion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment