On Fri, Jun 17, 2011 at 6:04 AM, kristian <[email protected]> wrote: > ad RVM: > I just would not know how to use RVM with mod_passenger and alike.
That is simple. I can help if something is not clear. Thanks to RVM you can have isolated Ruby versions and even gem sets inside the same Ruby version. For instance I have to use Ruby 1.8 for one old application and 1.9.2 for new ones. Because Passenger still does not work with many different Ruby interpreters (but it will!) I use proxy from Nginx to standalone Passenger 3 server which works in isolated environment (Ruby Enterprise + Rails 2.x gem set). I do not even waste any TCP port because Nginx can use unix proxy to standalone Passenger 3 server. For others Ruby/Rack applications I use Nginx with embed Passenger. Thanks to RVM I have isolated Ruby environments and access to the latest Ruby version. You cannot do this with Linux package system. > normal rubygems which are needed by the application like rails, you > bundle them anyways. This is only when you use just one Rails and Ruby version. What if your codebase grows and you would like to use newer Ruby? You can't, if you upgrade some old staff may stop working. > the remaining part is ruby itself and maybe the the rack gem which > comes with passenger (to stay with the example of that thread). so > then RVM is needed only for ruby and ONE gem. As I said. RVM is not for one Ruby. It is for many ones. I sue RVM for Ruby 1.9.2, REE and JRuby. Three different and isolated environments. And Inside 1.9.2 I have two gem sets, one for standard Rails 3.x and another one for Rails 3.1 beta. And thanks to RVM I can be sure that I can switch from one to another without any mess in gems and dependencies. > RVM does NOT come via APT - and thus it is a package I need to monitor > for "security" manually. And this is good. Debian packages are (usually) old and permanently out of date. I want to access to the latest RVM and latest Rubies. So, shortly, why RVM? 1) Isolated environments for any Ruby implementation (Ruby 1.8, 1.9, REE, JRuby, MagLev etc) 2) Isolated gem sets inside the same Ruby environment 3) The latest Ruby versions -- JZ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
