TTDaVeTT
TTDaVeTT

Reputation: 127

'bundle install' error for gems using git path Rails 3

Every time I deploy to my production server I get the following error for gems that use a git path:

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

I've found that if I run "bundle install --deployment" it solves this problem. But it installs all my gems again and I have to do it after each deployment. Has anyone found a better solution than this?

This is an example of the using a git path in my Gemfile:

gem 'efax', :git => 'https://github.com/TTDaVeTT/efax.git'

Upvotes: 0

Views: 653

Answers (1)

Jay Crouch
Jay Crouch

Reputation: 141

Same issue here: I've got this gem that requires a git origin.

gem "machinist_mongo", :git => "https://github.com/nmerouze/machinist_mongo.git", :require => "machinist/mongoid", :branch => "machinist2"

From what I've found; bundle installs the gem, but not in your gemset - so you have to get rails to include the gems specifically somehow... need help on that part.

Upvotes: 1

Related Questions