Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use non released Rails version from Git (possibly by commit number)

I'm trying to use Passenger to host my rails app, but as noted in this issue, logging is s little whacky in rails 3.2.1. Someone has released a commit (that has been pulled into the main branch) with a fix. How can I tell my app to use the main branch instead of a specific version of the rails gem? Also, is there a way I can specify that commit, in case the change is later overwritten by another pull?

Something like (in my Gemfile):

gem 'rails', git => 'git://github.com/rails/rails.git:<commit hash>'
like image 264
Tyler DeWitt Avatar asked Feb 19 '12 18:02

Tyler DeWitt


1 Answers

The Bundler docs note that you can use a specific reference like so:

gem 'rails', :git => 'git://github.com/rails/rails.git', :ref => '55cc16f'
like image 151
Gavin Anderegg Avatar answered Nov 15 '22 18:11

Gavin Anderegg