在 heroku 上找不到 gem bundler (>= 0) (Gem::GemNotFoundException)



当我运行heroku运行捆绑包安装时,它会给我一个错误

/usr/lib/ruby/1.9.1/rubygems.rb:308:in `bin_path': can't find gem bundler (>= 0) (Gem::GemNotFoundException)
from /app/bin/bundle:3:in `<main>'

当我是heroku run rails console时,它会给出错误

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /app/bin/spring:8:in `<top (required)>'
from /app/bin/rails:3:in `load'
from /app/bin/rails:3:in `<main>'

我做什么?

我在其中添加了nodejs构建包

我最近也有类似的经历

//usr/lib/ruby/1.9.1/rubygems.rb:308:在"bin_path"中:找不到gembundler(>=0)(Gem::GemNotFoundException)

但是通过使用NodeRuby构建包来解决。

检查您当前的构建包

heroku buildpacks

Node 之后添加Ruby构建包

heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-ruby

最新更新