Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)
like image 530
Chris Ian Avatar asked Feb 11 '23 03:02

Chris Ian


1 Answers

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
like image 192
Tal Avatar answered Feb 12 '23 16:02

Tal