firstruby

Master ruby with us

Rails 3.0.x + Gem installation from git source + Passenger

Posted by firstruby on December 31, 2010

In Rails 3.0.3 application, I have developed login functionality using ‘Authlogic’ gem. Gem added in ‘Gemfile’ as,

gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3'

Application was working fine with Mongrel and WEBrick server, but it was throwing an error with Passenger,

git://github.com/odorcicd/authlogic.git (at rails3) is not checked out. Please run `bundle install` (Bundler::GitError)

When we do ‘bundle install’, bundler installs gem (from GIT source) to different path other than regular one. Passenger does not understand this path, and that’s why above error was coming. So I have fixed it in following way,

I have installed ‘authlogic’ as a Plugin from branch “rails3” of given git path as,


cd vendor/plugins
git clone git://github.com/odorcicd/authlogic.git
cd authlogic
git checkout --track -b rails3 origin/rails3

After this, restarted application, and app works fine with Passenger, Mongrel, and WEBrick.

Hope this is helpful.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: