3 ms·
Managing different projects with different Ruby versions with rbenv has been the bane of my existence the past couple weeks. Why isn’t this experience fleshed o
by halfmatthalfcat 5y ago
Managing different projects with different Ruby versions with rbenv has been the bane of my existence the past couple weeks. Why isn’t this experience fleshed out better by now?
- nitrogen 5y agoUse rvm with .ruby-version (and optionally .ruby-gemset) files in each project. RVM hooks into the cd command so it's automatic. For CI scripting you use "rvm (path) do (command)."
- jamesgeck0 5y agorbenv also automatically swaps versions based on .ruby-version files. I believe it accomplishes this by wrapping the ruby binary with a script that checks your project directory; it doesn't touch cd.
- regularfry 5y agoPersonally I get very good mileage out of the ruby-install/chruby/rv trifecta. RVM and rbenv tried to do too much for my liking.