Collective Idea

Collective Idea Logo

Keith Gaddis

Heroku-ing with multiple personalities

By Keith Gaddis on August 06, 2010 in heroku and tips

I recently transitioned a client site from my own account on Heroku to their account – which means to manage that site effectively, I need to be able to use Heroku with multiple accounts. Fortunately, there was a great guide on the topic already, so most of what I did came straight from Aeonscope’s notes on how to manage multiple accounts. The gist is that you can use his scripts to easily switch your credentials file (used by the heroku gem) from one account to another.

The problem is with the SSH config – using his instructions and talking to official.heroku.com, you have to add the --app switch to tell heroku which app to talk to. I don’t really want to do that, so I just went a step further with his scripts, creating a link to the ssh identity I want heroku to use at any given time. My version of his switcher.rb is here

[I should also point out that my script assumes you’re using RSA keys and the typical location for the default, ~/.ssh/id_rsa & ~/.ssh/id_rsa.pub – adjust accordingly if you do otherwise.]

By Keith Gaddis on August 06, 2010 in heroku and tips

Post a Comment

Contact Us

Find us on Google Maps
Collective Idea
44 East 8th Street, Suite 410
Holland, Michigan 49423 USA 42.790334-86.105251

Follow us on the Interwebs

We are currently available for medium and long term projects. Please get in touch if we can be of service.