On my ubuntu server, I switched the ruby versioning strategy from using rvm
to rbenv
. When I restart the nginx server, I get this error:
Bundler was unable to find one of the gems defined in the Gemfile
However, this exception is a bit misleading because another message says that a possible issue is:
The application may be run under the wrong Ruby interpreter. It is currently being run under /usr/bin/ruby2.7.
So I’m sure the issue is that the incorrect ruby interpreter is being referenced by passenger because I am actually running ruby version 3.2.4
with rbenv. How do I fix this?