本文介绍了Elastic Beanstalk,Bundler找不到与宝石"bundler"兼容的版本.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经尝试过将Elastic Beanstalk用作导轨.当我运行eb deploy时,出现此错误.我需要至少安装捆绑器1.8.4.任何想法如何解决这个问题?
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)
推荐答案
我正在通过将弹性beantalk配置文件添加到我的项目中来升级预安装的捆绑程序.我正在运行旧版本的Elastic beantalk盒子,所以请随时更改红宝石路径以适合您的盒子.
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.
文件名:.ebextensions/upgrade_bundler.config
文件内容:
commands:
update_bundler:
command: /opt/rubies/ruby-2.1.5/bin/gem install bundler -v 1.8.4
这篇关于Elastic Beanstalk,Bundler找不到与宝石"bundler"兼容的版本.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!