I cannot get rvm to read my specific project .rvmrc

I come to the world (re: rbenv), but I am very upset with rvm and .rvmrc. I continue to run into problems when I am nested in the project folder only to find that my ruby ​​and gemset environment is not installed correctly. So can someone tell me once and for all how to create the right .rvmrc for my project.

I tried both methods that I know of:

  • creating .rvmrc and setting 'rvm use 1.9.2@GEMSET ' there (this sometimes doesn’t work sometimes)
  • using the rvm command line tool --create --rvmrc 1.9.2@GEMSET , which creates more ellaborate.rvmrc, but cd'ing in my project folder still does not give me the desired result.

This problem is unsustainable. I will say that I am working on two different machines and synchronize the project folder through Dropbox. So could this be a problem when rvm cannot check the folder and therefore ignores .rvmrc?

Any help would be greatly appreciated.

+7
source share
2 answers

You may need to install

rvm_project_rvmrc=1 

in your shell configuration before rvm scripts are created, for example:

 rvm_project_rvmrc=1 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 
+6
source

Each time you enter the project directory after changing its .rvmrc file, rvm will prompt you to accept or not a new file. If you want to change your mind after this, you should use the rvm rvmrc command:

 rvm rvmrc {trust,untrust,trusted,load,reset} 
+11
source

All Articles