我在 Gemfile 中有这样的行:
group :test do
...
gem 'cucumber', :git => "git://github.com/aslakhellesoy/cucumber.git"
...
end
当我尝试通过在服务器上进行部署时bundle install --deployment --quiet --without development test
,出现错误:
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.
我在服务器上没有 git 可执行文件。但我不想使用 git,因为 cucumber 在 :test 组中,我使用“--without test”执行捆绑程序!
我该怎么办?