tags:

views:

47

answers:

1

I'm trying to migrate my app to Heroku - I have a config file that varies with development/staging/production environments as it contains uniquely assigned keys (from Facebook, S3, etc.), so I keep it out of the repository and keep the configs local.

As such I'm trying to find a solution for Heroku to have that config file since Heroku deploys from the repository. I noticed Heroku deploys from the master branch - can it deploy from another branch? Because then I could commit the Heroku configs there, and have it not overwrite the other environments' configs every time it pulls.

Thanks!

+1  A: 

I believe Heroku always launches the master branch of the Gt repo, but they support config vars to address exactly this issue.

sevennineteen
Thanks, I also got a reply from a Heroku rep that "git push heroku <your branch>:master" can push another branch
ambertch
Interesting stuff. Thanks!
sevennineteen