Elastic Beanstalk, Bundler could not find compatible versions for gem “bundler”

南楼画角 提交于 2020-01-23 08:05:06

问题


I have tried Elastic Beanstalk for rails. When I run eb deploy I got this error. I need to install at least bundler 1.8.4. Any idea how to resolve this?

 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)

回答1:


I am upgrading the pre-installed bundler by adding an elastic beanstalk config file to my project. I am running an older version of Elastic beanstalk box, so feel free to change the ruby paths to fit your box.

file name:
.ebextensions/upgrade_bundler.config

file content:

commands:
  update_bundler:
    command: /opt/rubies/ruby-2.1.5/bin/gem install bundler -v 1.8.4


来源:https://stackoverflow.com/questions/30240973/elastic-beanstalk-bundler-could-not-find-compatible-versions-for-gem-bundler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!