Openshift ssh incorrect ruby ​​version when installing package?

I have a Ruby 2.0 rails 4 application in descent mode.

When I ssh into my application and start installing the package, I get a message saying "Your Ruby version is 1.8.7, but your Gemfile is 2.0.0".

On startup ruby -v

I get: "ruby 2.0.0p353 ..."

The launch gem environment

also says Ruby 2.0.

Also everything works fine on my local machine.

Why does my package installation think I'm using ruby ​​1.8.7 on the openshift server?

+3


source to share


1 answer


I think your package was installed prior to upgrading Ruby to 2. Try to install your switch again with gem install bundler

and then runbundle install



Let me know if it works

+4


source







All Articles