News for hackers. Stuff that matters.
Re:Manage multiple Heroku environments w/ Katana by nborgo on Sunday January 16, 2011 @06:57PM (#2110686)
Might I suggest "herogit"? You can keep doing "heroku <command>" like normal – it just treats different branches as different apps, which I quite like. They put it in the last newsletter.

For example, I have a "staging" branch for my staging app and use the "master" branch for production. When I checkout the staging branch, the heroku gem switches everything to the staging app. Checkout the master branch and it switches to my production app.

(A little gotcha: I have to use "git push <repo> staging:master" to deploy the staging branch)

I've never tried the Katana gem, though, so I have no idea if it's better or worse.

https://github.com/jbarnette/herogit

Re:Manage multiple Heroku environments w/ Katana by akane on Sunday January 16, 2011 @07:02PM (#2110698)
Thanks for the suggestion. I haven't heard of herogit before. I'd like to add more flexibility with branches in the future, but wanted to release it always using master in the meantime.
Re:Manage multiple Heroku environments w/ Katana by nborgo on Sunday January 16, 2011 @07:44PM (#2110809)
Oh, whoops, I didn't notice you wrote Katana. Hopefully my comment didn't seem like I was trying to take anything away from your gem.

I'm tempted to give Katana a shot with my next app. Who knows, I might like it more.

Re:Manage multiple Heroku environments w/ Katana by akane on Sunday January 16, 2011 @07:59PM (#2110835)
No worries. If you do try it, let me know what you think. It adds a few Capistrano-like commands that I find myself using regularly (like "deploy", which pushes your app and runs your migrations).