我已经为 Rails 尝试过 Elastic Beanstalk。当我运行 eb deploy 时出现此错误。我至少需要安装 bundler 1.8.4。知道如何解决这个问题吗?
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (>= 1.8.4) ruby
Current Bundler version:
bundler (1.7.3)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`? (Executor::NonZeroExitStatus)
最佳答案
我正在通过向我的项目添加弹性 beanstalk 配置文件来升级预安装的捆绑器。我正在运行旧版本的 Elastic beanstalk box,因此请随意更改 ruby 路径以适合您的 box。
文件名:.ebextensions/upgrade_bundler.config
文件内容:
commands:
update_bundler:
command: /opt/rubies/ruby-2.1.5/bin/gem install bundler -v 1.8.4
关于ruby-on-rails - Elastic Beanstalk、Bundler 找不到 gem "bundler"的兼容版本,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30240973/