passenger

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.

Bundler + Passenger with Rails 2.3.5? Yes, please!

Bundler allows you to define the gems your application uses, resolve dependencies and load everything up. This is great, because you don’t have to manage all those different gem versions yourself any more. There is a little problem, though. When you want to use Bundler with Rails 2.3.5. you need to do a bit of extra work. You’ll need to create a file config/preinitializer.rb that contains the following: require "rubygems" require "bundler" if Gem::Version.