rvm

Running a different ruby with Passenger 3.2 and RVM

Passenger 3.2 will have quite some nice new features. 1 2 The features I’m looking forward to most is the ability to specify - per virtual server - which ruby to use. Before, you installed passenger and specified the required ruby version using passenger_ruby, like this in your nginx.conf: http { passenger_root /opt/passenger; passenger_ruby /usr/local/bin/ruby; server { server_name ariejan.net; passenger_enabled on; } } Now, if you added another server it would be forced to use the same ruby version.

Ruby version and gemset in your Bash prompt? Yes sir!

RVM is an easy way to switch between different ruby implementations and gemsets. If you don’t know about it, go check it out. If you do know about, you’ll know how annoying it is never to know which ruby version and gemset you’re currently using. Here is a nice .profile hack that shows your current ruby version and optional gemset in your prompt. Firstly, add the following function to your ~/.