Search code examples
ruby-on-railsheroku

Deploy Multiple branch on Heroku


I have a Heroku application that already deploy on Heroku (master-branch) in that I created new branch staging. The staging branch code are totally different with master. Now I want to deploy staging on Heroku but that will not affect on master. How can I do that?


Solution

  • You have to created separate applications on Heroku for each environment that you need. I typically create dev and staging using the free tier.

    Here is blog post that walks you through the process: http://agilewarrior.wordpress.com/2014/05/16/how-to-create-a-staging-environment-heroku/