Deploy multiple Heroku instances

I read a couple of other posts on this subject, but there seemed to be something at a dead end. I'm trying to have two separate branches that supersede two different Heroku instances - one production and one stage. I believe my setup will look like this:

Local Myapp | | - master > - master | | | | Myapp-Staging | | - edge > - master 

I have the following commands, but for some reason I seem to be unable to correctly click on the intermediate service. The "git push master master" goes through, but I cannot understand why the changes did not seem to affect the Heroku instance when I go to myapp-staging.heroku.com. I could do something here ...

[Dev]

 git checkout edge git push staging master (is this "master" or "edge")? heroku rake db:migrate --app myapp-staging 

[Production]

 git checkout master git push master master heroku rake db:migrate -app myapp 

Any help would be greatly appreciated.

+7
ruby-on-rails heroku
source share
1 answer

Try:

 git push staging edge:master 

Staging is a remote repository, and you push the edge branch to the master branch in the staging repository.

(The git wizard for creating intermediate scenes is a shortcut for the git wizard of the intermediate start: wizard.)

Also you do not need to check your code before clicking. You can push an arbitrary branch to any server - no matter which branch is checked.

+10
source share

All Articles