VOOZH about

URL: http://rvm.io/integration/passenger

⇱ RVM: Ruby Version Manager - Phusion Passenger - Come on, ride the train, hey, ride it, woo woo...


👁 RVM Logo
Support
RVM is maintained by community of volunteers, report issues to RVM issues tracker.
If you can help or wish to become one of the maintainers - just start helping. You can find more RVM related projects at RVM Github organization.
Donation
Love RVM? Help us maintain RVM, a donation can help with it. Want to help in other way, want to be a sponsor?
contact: Michal Papis
Sponsors
👁 Fastly
Carbon Ads

Using RVM rubies with Phusion Passenger

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. RVM will allow you to use any of it's MRI/YARV Rubies with Phusion Passenger very easily.

RVM works best with latest version of Phusion Passenger. Latest Phusion Passenger 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 later versions have much better RVM support. Instructions for 3.x can be found here.

Using RVM with Phusion Passenger

Follow the excellent documentation on the Passenger site.

FAQ

  • Q: Can I run multiple projects under Phusion Passenger with each project on a different Ruby version?

    A: Yes, since Phusion Passenger 4.

  • Q: How do I use custom gemsets under Phusion Passenger?

    A: Switch to that gemset first, then run 'passenger-config --ruby-command' as documented in the Phusion Passenger manual. It'll tell you what 'PasengerRuby'/'passenger_ruby' config option you should put in your virtual host. Edit your virtual host accordingly and restart the web server.

  • Q: How can I use commands like passenger-status in conjunction with a user install but run them as root?

    A: Mainly the key to this is to use wildcards in the sudoers file as the following examples show: /usr/bin/env GEM_PATH=* GEM_HOME=* PATH=* passenger-status

Community Resources

RVM Documentation Index | RVM Blog
RVM Interpreters Rubies
Gemsets Set Actions Workflow Deployment
Integration
Packages Presentations Help & Support Quality Assurance Development Credits
∞ Copyright © 2009-2011 Wayne E. Seguin © 2011-2017 Michal Papis © 2016-2017 Piotr Kuczynski ∞ Built with Nanoc ∞ Cached by Fastly ∞ Tested by Travis CI