我从sudo bundle install命令中获得以下输出:
Fetching source index for `http://rubygems.org/`
Could not reach rubygems repository `http://rubygems.org/`
Could not find gem 'rspec-rails (>= 2.0.0.beta.22, runtime)' in any of the gem sources.
我正确地设置了$http_代理,并在~/中添加了gem: --http-proxy=my proxy.gemrc.这些设置允许我的gem命令工作,我希望它们能转化为bundler,但没有这样的运气.
考虑到sudo可能不会继承我的所有环境,我还将这些设置添加到了我的root用户,但nada.
此时bundler正在阻止我部署我的应用程序,我发现很少有其他人会遇到这种情况.如果没有人知道答案,我将被迫从Rails应用程序中删除bundler(我不介意这么做…)