Every project of mine has a specific .rvmrc. Since my gemsets are private, I tend to add .rvmrc to .git/info/exclude. Should I add .rvmrc to .gitignore? Should I commit it to the repo? Or am I doing it right?
I think the best usage for .rvmrc is to commit it.
Others says if you work with others they can easily install gems with bundle. But it's not necessarily the exact same Ruby version they use for example. If you're using .rvmrc and you commit it and the others also use it then it ensures that all configs will be the same.
Also someone wrote he's different environments in develoment and production. This is not a good habit. Development, test and production environments should be as close to each other as possible. .rvmrc simply ensures it, no doubt.
Further more: it helps you handling more projects paralelly. Everytime you enter a folder which has an -rvmrc file if changes your Gemset. Otherwise you might forgot to change versions and may have unnecessary struggles and confused Gemsets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With