Skip to content

CEWendel/Multiple-Heroku-Environments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Multiple-Heroku-Environments

Shell script that sets up easy deployment to multiple environments on Heroku

##Installation:

  1. Navigate to your project base directory
 git clone git@github.com:CEWendel/Multiple-Heroku-Environments.git
  1. Set execute permissions
 chmod +x Multiple-Heroku-Environments/mult_environ 
  1. Run script
 Multiple-Heroku-Environments/mult_environ 

##Usage:

Let's set up the staging app, make some changes, and merge them over to the prod app ###Staging app

  1. Switch to staging branch and make a change
 git checkout staging 
  1. Commit the change you made on the staging branch
 git commit -am "Stage file change" 
  1. Push the change to the staging branch of your remote repo (ie. Github)
 git push origin staging 
  1. Push the change to the master branch of the staging heorku app (heroku-staging)
 git push heroku-staging staging:master 
  1. Open the staging heroku app and make sure you change is displayed ###Merging to the prod app

  2. Checkout the master branch

 git checkout master 
  1. Merge the changes from the staging branch
 git merge staging 
  1. Push the changes to the master branch of your remote repo (ie. Github)
 git push origin master 
  1. Push the changes to your prod app
 git push heroku-prod master 

About

Shell script that sets up easy deployment to multiple environments on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages