RVM and Passenger
Posted: 18 months ago (2010-08-07 19:34:45 UTC )
If you're using RVM with Passenger,you've probably already seen the official documentation on using passenger wrappers with rvm. If not, go have a look, it's basically good.
However, you may not realize that you shouldn't create a gemset, install the gems into it, and then wrap it. For reasons that I have yet to figure out, you need to wrap the ruby and gemset, then install the gems. Just so you know.
For those following along, the steps look like this:
* rvm gemset create deployment
* rvm wrapper ree@deployment --passenger
* passenger_gem install rails --pre --no-ri --no-rdoc
On the plus side, you can then just change your passenger_ruby declaration in Apache or NGinX and it seems to work. I did a lot of installing and reinstalling to get this to work :-)
