Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
chruby1 is an excellent tool to set/switch among ruby versions. It would be good if Passenger would support it (afaik it does not).
The way I've understood it there are two related things that must work:
My guess would be that
Somewhat related, nginx has support for loading
What are your thoughts, is there a feasible way of using
Related issue in chruby: postmodern/chruby#258
Good idea, thanks!
Got it working with a wrapper script (for reference below, in case it helps someone else).
You're better positioned to judge whether this falls within Passenger, chruby or the end-users [my] responsibility.
But if there was an easier way of getting chruby and Passenger to play well together it would be neat. Although it was an easy fix, I'm not well acquainted with bash/unix and the solution was far from obvious. I'm guessing there may be others in the same situation.
I think it's the user's responsibility.
Also, I don't recommend chruby if you're not well acquainted with bash and Unix. Chruby's entire design assumes that the user is acquainted with how Unix works. Chruby makes extensive use of environment variables, paths, scripts, etc, all part of its philosophy of "simplicity" (in the implementation sense). That is a sound decision, but it does mean that the user must be knowledgeable enough to know about all the mechanisms involved. So you should either learn the necessary Unix skills, or you should use a solution that takes care of more things for you, like RVM.