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)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With