Updating phusion passenger
There's a section in that manual that covers RVM, and there's even a tool to aid RVM users.Phusion Passenger Standalone runs standalone, without needing you to install an external web server like Apache or Nginx, although it uses an Nginx core internally. Previous versions of this web page stated that you need to create a .rvmrc file for Phusion Passenger. Other than the aforementioned instructions, there's really nothing else you need to follow.When using Bundler in your project, Passenger will try to be smart and only add to your the gems listed in your Gemfile.
If you want to run any apps under a different RVM Ruby or RVM gemset, then you need to set a (Nginx) configuration option in that app's virtual host.
The value must correspond to the desired RVM Ruby or RVM gemset.
This is explained in detail in the Phusion Passenger document: Apache manual, Nginx manual.
Phusion Passenger 4 has full integration support for RVM and should work out of the box with no configuration.
The only thing you need to tell Phusion Passenger is which Ruby you want to use for which app.
RVM also works with Phusion Passenger 3.x, although 4.0 has much better RVM support. First of all you need to run (Nginx) configuration snippet for the web server.
Its value is set to the RVM Ruby wrapper script that corresponds with the RVM Ruby and RVM gemset that was used to run the installer.
Phusion Passenger is an application server for Ruby and Python that can integrate into Apache and Nginx, or run standalone.
It's currently one of the most popular application servers for Ruby.