I have a rails 5.1 app, here is my .ruby-version
ruby-2.5.0
Here is the output of rvm list
rvm rubies
ruby-2.3.1 [ x86_64 ]
=* ruby-2.4.0 [ x86_64 ]
ruby-2.5.0 [ x86_64 ]
When I cd to "current" (deployed using Capistrano) I and I run the following:
RAILS_ENV=production bundle exec ruby --version
I get
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
I thought .ruby-version was what triggers which ruby version is used. What am I doing wrong?