I have several old (pre-bundler / pre-rvm) Rails projects that use my system's gems.
Now I've installed RVM to ride the latest Rails version, but my old applications are now using a gemset: (I'm not sure exactly what I did to make this happen)
~/rails_apps/rapgenius >: echo $GEM_HOME
/Users/tom/.rvm/gems/ruby-1.8.7-p302
I want to use my system's gems by default, and, if I have an .rvmrc
file in a directory, I want to use the gemset it specifies in that directory. Like this:
~/rails_apps/reader2000 >: cat .rvmrc
rvm 1.9.2@reader2000
~/rails_apps/reader2000 >: echo $GEM_HOME
/Users/tom/.rvm/gems/ruby-1.9.2-p0
How can I achieve this?
你可以试试
rvm use system --default
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.