Shell script that sets up easy deployment to multiple environments on Heroku
##Installation:
- Navigate to your project base directory
git clone git@github.com:CEWendel/Multiple-Heroku-Environments.git
- Set execute permissions
chmod +x Multiple-Heroku-Environments/mult_environ
- 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
- Switch to staging branch and make a change
git checkout staging
- Commit the change you made on the staging branch
git commit -am "Stage file change"
- Push the change to the staging branch of your remote repo (ie. Github)
git push origin staging
- Push the change to the master branch of the staging heorku app (heroku-staging)
git push heroku-staging staging:master
-
Open the staging heroku app and make sure you change is displayed ###Merging to the prod app
-
Checkout the master branch
git checkout master
- Merge the changes from the staging branch
git merge staging
- Push the changes to the master branch of your remote repo (ie. Github)
git push origin master
- Push the changes to your prod app
git push heroku-prod master