编辑此文件以使rails应用程序在外部服务器上运行时需要执行哪些操作?
我得到了错误cannot load such file -- bundler/setup
gem_original_require path
为什么会这样?
def require path
if Gem.unresolved_deps.empty? then
gem_original_require path
else
spec = Gem::Specification.find { |s|
s.activated? and s.contains_requirable_file? path
}
unless spec then
found_specs = Gem::Specification.find_in_unresolved path
unless found_specs.empty? then
found_specs = [found_specs.last]
else
found_specs = Gem::Specification.find_in_unresolved_tree path
end