[英]Elastic Beanstalk, Bundler could not find compatible versions for gem “bundler”
我試過Elastic Beanstalk for rails。 當我運行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上升級bundler,你應該創建一個擴展,並確保在路徑中使用ruby-current
。
文檔名稱:
.ebextensions/upgrade_bundler.config
文件內容: commands: install_bundler: command: /opt/rubies/ruby-current/bin/gem install bundler -v 1.14.6
我正在通過向我的項目添加彈性beanstalk配置文件來升級預安裝的bundler。 我正在運行舊版的Elastic beanstalk盒子,所以請隨意更改紅寶石路徑以適合您的盒子。
文檔名稱:
.ebextensions/upgrade_bundler.config
文件內容:
commands:
update_bundler:
command: /opt/rubies/ruby-2.1.5/bin/gem install bundler -v 1.8.4
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.