我有這樣的線的Gemfile:Bundler,Rails3:如何在部署期間避免在測試組中使用邊緣寶石的git檢查?
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,而我使用「--without test」執行bundler!
我該怎麼辦?