From: Jon B. <jo...@gm...> - 2007-08-31 16:06:56
|
Not necessarily true ... Rails will boot the server in the order listed below, I think you may be looking @ older source(?) ... server = case ARGV.first when "lighttpd", "mongrel", "webrick" ARGV.shift else if defined?(Mongrel) "mongrel" elsif RUBY_PLATFORM !~ /(:?mswin|mingw)/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI) "lighttpd" else "webrick" end end On Aug 31, 2007, at 4:28 AM, Tim Perrett wrote: > Hey Jon > > As far as im aware there using Lighttpd/FCGI rather than mongrel, so > the setup would be quite a bit more complicated I should have > thought. I have been looking at the rails "script/server" command > boots its mongrel instance, and they seem to be using (from the rails > source) a method called "load", with this code: > > trap(:INT) { exit } > > begin > silence_warnings { ARGV = parameters } > load("mongrel_rails") > ensure > tail_thread.kill if tail_thread > puts 'Exiting' > end > > They do some other configuration before hand of course, but the thing > is, I am not sure what load() its actually calling? Sorry thats out > of a left field but I just wondered if anyone knew? > > Cheers > > Tim > > > On 30 Aug 2007, at 20:55, Jon Baer wrote: > >> Might want to check + see how Locomotive guys are doing it >> underneath ... >> >> http://locomotive.raaum.org >> >> - Jon > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |