UCSCLibrary / ucsc-library-digital-collections

A rails app based on Hyrax to be used as a repository for UCSC library digital collections.
1 stars 2 forks source link

(5) Fix rvm on staging + production #660

Closed rschwab closed 1 year ago

rschwab commented 1 year ago

Production and staging servers appear to not be set up to use the correct versions of ruby as managed by rvm. On both servers, rvm info shows the path as /home/sufia/.rvm but the which ruby command returns /bin/ruby. So while rvm is installed and has been updated, the application is still using an older ruby version.

Sandbox has the correct configuration: rvm info shows path as /usr/local/rvm which ruby shows /usr/local/rvm/rubies/ruby-2.7.2/bin/ruby

snehagunduraoUL commented 1 year ago

The ruby version on staging is 2.7.2

Image

snehagunduraoUL commented 1 year ago

on production

Image

snehagunduraoUL commented 1 year ago

rvm version on staging and production can be updated, but the ruby versions used by the app on all three servers appear to be 2.7.2 @rschwab Am I missing something here?

rschwab commented 1 year ago

No it was me missing something: rvm is installed not globally but per user. My bad! Thank you Sneha, I'll close this one.