my face
About Me

Published Posts

All Posts

New Post


View by Tag:

interviewing, code, testing, philosophy, blog, wantmyjob, virtualization, railsmud, heroku, ruby, published, neoarchaeology, railsgame, rails, juggernaut, astrino, cheaptoad, shannaspizza, mongodb, refactorit, devise, rvm, passenger, jruby, programming, vagrant, chef, railsframe, business, codefolio


Online Portfolio

Resume

Profile on LinkedIn

Recommend me on WorkingWithRails: Recommend Me

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 :-)

Previous: More rvm and passenger / Next: DB2 CREATE DISTINCT TYPE WITH COMPARISONS

Edit | Destroy | See All Posts

blog comments powered by Disqus