ruby-on-rails – Bundler抛出没有用于gem install的文件或目录

在Gemfile中,

gem "backup", :git => "git://github.com/tenmiles/backup.git", :ref => "develop"

n本地和暂存,捆绑安装确实成功完成.在生产中,当bundle install –deployment发生时,bundler会抛出此错误

Using backup (3.0.19) from git://github.com/tenmiles/backup.git (at develop)
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:365:in `initialize': No such file or directory - /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/backup-3.0.19/bin/backup (Errno::ENOENT)

我查了/home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/,backup-150fb5168ebe就在那里!它是通过git安装的gem.为什么bundler正在寻找backup-3.0.19.如何刷新备份gem并要求bundler从头开始重新安装gem.

请帮忙

最佳答案 试试这个
http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/ U可以通过那里提到的方法将gem安装到你的宝石套装中

点赞