Verbose Logging

software development with some really amazing hair

T + G I F R

Private Rubygems on Heroku

· · Posted in Programming
Tagged with

Maybe Heroku changed something, or maybe it's the new Cedar stack, but using private gems from Github is pretty easy. It apparently didn't work before.

The important part is in your ~/.ssh/config

    ForwardAgent yes

After that it's no big deal. Just use an ssh URL to Github (or wherever, the Github part doesn't really matter) in your Gemfile and off you go!

source :rubygems
ruby '1.9.3'
gem 'sinatra', :git => ''
gem 'thin'
gem 'heroku'

The code here is running on Heroku:

So if you need a private gem on Heroku for work or something, go right ahead.

It's no big deal.