I have a rails project that I run inside a vm and mount the project directory through nfs. I also have a copy of the project checked out locally.
If I run rubocop on the local version of the project, everything works correctly. However if I run rubocop in the nfs mounted version i get
Could not find proper version of rubocop (0.39.0) in any of the sources
Run `bundle install` to install missing gems.
If I run bundle install
from the remote directory I get
Attempting to write to `/home/deploy/ruby/2.1.0` is unsupported by your OS.
However which ruby
tells me ruby is located at
/Users/user/.rvm/rubies/ruby-2.1.6/bin/ruby
So, why is it looking for gems in /home/deploy/ruby/2.1.0 when my ruby (and rubocop for that matter) is in a totally different place?