I have such lines in Gemfile:
group :test do
...
gem 'cucumber', :git => "git://github.com/aslakhellesoy/cucumber.git"
...
end
When I try do deploy on server via bundle install --deployment --quiet --without development test, I get an error:
sh: git: command not found
** An error has occurred in git when running `git clone "git://github.com/aslakhellesoy/cucumber.git" "/home/test/rails_apps/test_app/shared/bundle/ruby/1.8/cache/bundler/git/cucumber-3eb3f1a09813a1271fada66aac31d953ef2ad625" --bare --no-hardlinks. Cannot complete bundling.
I have no git executable on server. But I don’t want to use git because cucumber in :test group, and I execute bundler with “–without test”!
What should I do?
There are no way to do this. Because this is feature of bundler
http://gembundler.com/man/gemfile.5.html (see GROUPS part)
What about you haven’t git or any gems at your server. You should use
bundle pack. But, nowbundle packdon’t work with git. Then you should pack git sources manually:Then, in your Gemfile,
.
http://github.com/carlhuda/bundler/issues/labels/git#issue/67