From: Sean Chittenden Date: 2002-04-08T12:19:38+09:00 Subject: Re: Switching from PHP to Ruby - Comments Please > > > Ok, help me out here. What are the possible configurations for running > > > a ruby website. Here is the list according to my understanding: > > > > > > 3. mod_ruby/eruby > > > a. eruby allows ruby code to be embeded into any text document. > > > mod_ruby lets Apache call eruby to process a ruby encoded file. > > > b. Can FCGI or FastCGI be used here to speed things up, or is it > > > enough that each apache process has its own ruby process. > > > c. What about the future with Apache 2.0. Will threads help here? > > > > > > > You do not need eruby to use mod_ruby. You can write your scripts as you > > would for CGI, but call them through mod_ruby rather than CGI. Likewise, > > you can use eruby as a CGI app. > > > Is one way preferred over the other? eRuby from mod_ruby: the Ruby interpreter is already loaded and that increases performance (nevermind the module caching). -sc -- Sean Chittenden