They seem to all do exactly the same, all using the .ruby-version
to get the current Ruby version for your project.
Which do you use and why?
They seem to all do exactly the same, all using the .ruby-version
to get the current Ruby version for your project.
Which do you use and why?
RVM. I did try rbenv, but I just couldnāt get it to work on my server so gave up and reverted to rvm
Have never used chruby - anyone got any experience of it?
Iāve used chruby and ruby-install for a while now. Works great!
How is your setup? Do you use chruby for production as well?
I just brew chruby and ruby-install. Production is ops works recipes, which I believe just install distro packages for ruby.
Still use RVM. Used to use gemsets for dependency management until not so long ago, but its Bundler now as all the cool kids use it.
Yeah, thatās what I mean by them all being the same. They all use Bundler to handle the gemsets.
I use RVM. It works well. Easy installation with ā\curl -sSL https://get.rvm.io | bash -s stable
ā and if you mess up your Gemset, or RVM environment, itās as easy as removing ~/.rvm and re-installing.
I havenāt tried rbenv but my father did install it and had to upgrade his Linux distro for some required library.
I like and use rvm, but the other folks on the company use rbenv insteadā¦
RVM on my dev which is a Mac
Pure installation on server (docker image)
We use a base image with just rbenv
and then install the proper Ruby in another ābase imageā which we can then inherit from for our apps. We donāt run the same Ruby on all apps, but this gives some maintainability for the DevOps.
I use rvm, but it is awfully persnickity⦠always wants to be first in the PATH (that warning can be turned off, thank goodness), and it often nags me about it being "not a function.ā The next time it gives me fits, Iām going to try rbenv instead and see if itās better.
I use chruby and compile the ruby versions I need into ~/.rubies
Altough I think I could use ruby-install I somehow prefer to compile them by source
In addition to chruby I use gem_home to get the feeling of gemsets.
Each project I do has a .gem/ folder where only the gems for this specific project are installed.
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
mkdir -p ~/.rbenv/plugins
cd !$
git clone git://github.com/sstephenson/ruby-build.git
git clone git://github.com/jamis/rbenv-gemset.git
git clone git://github.com/dcarley/rbenv-sudo.git
export PATH=ā$HOME/.rbenv/bin:$PATHā
eval ā$(rbenv init -)ā
sudo apt-get install build-essential libssl-dev libxml2-dev libxslt1-dev libreadline-dev
rbenv install 2.2.2
rbenv global 2.2.2
echo ā2.2ā > .ruby-version
echo āmy_projectā > .ruby-gemset
echo ā.my_projectā > .ruby-gemset
. ~/.bashrc
Sometimes you have to call rbenv rehash after bundle install
Thanks @0xCCD. I donāt remember exactly what the problem was now (it was a couple of years ago) just that I spent hours trying to get it to work but it wasnāt having any of it. It was a new server and I had used RVM on the previous one, so just gave up and went back to RVM.
I use rbenv.
Got annoyed with RVM, so just imploded it. =)
I use RVM. I havenāt really tried any of the others because RVM is doing just fine for me
chruby seems to be the simplest of them all. Have been using them for over a week, it feels good.
Well Iām moving the sites to a new server and am wondering about which to useā¦
Slanting towards Chruby atmā¦
Endorsements
yeah chruby is nice, does the limited thing of switching really good, the only hope it never grows
ā Michal Papis of RVM
I just looooove chruby For the first time Iām in total control of all aspects of my Ruby installation.
ā Marius Mathiesen
Written by Postmodern, itās basically the simplest possible thing that can work.
ā Steve Klabnik
So far, Iām a huge fan. The tool does what it advertises exactly and simply. The small feature-set is also exactly and only the features I need.
ā Patrick Brisbin
I wrote ruby-version; however, chruby is already what ruby-version wanted to be. Iāve deprecated ruby-version in favor of chruby.
ā Wil Moore III
This is a good write-up http://kgrz.io/2014/02/13/Programmers-guide-to-choosing-ruby-version-manager.html leaning even more towards chruby nowā¦