How to tell rails to use non-default ruby?
Posted
by Hamish Downer
on Server Fault
See other posts from Server Fault
or by Hamish Downer
Published on 2010-05-25T15:13:58Z
Indexed on
2010/05/25
15:21 UTC
Read the original article
Hit count: 512
I need two different versions of ruby on a server. The packaged ruby for the packaged puppet to work, and a compiled ruby for a rails web app to work. So basically I want the default ruby to be the ruby from the package, and for rails to use the compiled ruby (in /usr/local/bin/
and /usr/local/lib/
)
I've found references to setting the RUBYPATH and RUBYLIB environment variables, but I'm confused as to where to set them. In .bashrc
, .profile
, in the apache config somewhere?
© Server Fault or respective owner