Ruby Path per virtual host (for Ruby1.9)?

Discussion in 'Ruby/Rails' started by i_am_cam, Dec 18, 2007.

  1. i_am_cam

    i_am_cam New Member

    Hi, with the upcoming release of Ruby 1.9, I've been wondering about how best to handle the transition across our four servers running litespeed. As all servers have sites running Rails 1.2.x, I'd initially thought about installing 1.9 into a custom location and configuring any Rails 2.x virtual hosts to use the path to 1.9 in their Ruby Path.

    Problem I'm having with this is that Ruby Path appears to be a server-only variable, that isn't appearing at the virtual-host level?

    Is there a way to achieve this, or is there another way to have multiple Ruby installations running on a single server all usable via Litespeed I'm not aware of? :)
  2. mistwang

    mistwang LiteSpeed Staff

    If you want to use multiple ruby installation, you may have to use the manual setup with "dispatch.lsapi", you can specify path to ruby executable there.
  3. i_am_cam

    i_am_cam New Member

    Ahh, of course - thanks!

Share This Page