Reputation: 7683
Is it possible to associate a project (that is the root directory of a ruby project) with a certain gemset? I thought that
rvm gemset use mytestgemset
would do that, but it is temporary and just exiting and entering again restores the original gemset.
I have set up a "test" gemset where i test new version of gems. I don't think i have to issue a rvm gemset use mytestgemset
each time i launch my test application, do I?
Upvotes: 2
Views: 143
Reputation: 4880
In the directory of your Rails app add a file called .rvmrc
with the text rvm gemset use mytestgemset
in it.
When you cd into that directory rvm will notify you that it has switched the gemset in use. The first time you need to confirm, afterwards it will switch automatically.
Upvotes: 4