From: David Masover Date: 2009-11-26T05:52:04+09:00 Subject: Re: Ruby a good choice for CGI? On Wednesday 25 November 2009 02:38:32 pm Marnen Laibow-Koser wrote: > David Masover wrote: > > Passenger and mod_ruby are essentially the same thing, IIRC. > > You do not RC. :) Passenger is the same as mod_rails. mod_ruby is an > older module, suitable for CGI scripts but not Rails (and therefore I > would assume it's not suitable for Sinatra). Ah. And probably not. I guess it would make more sense, if it was called mod_ruby -- it's a lot closer to mod_perl than the current mod_ruby is, and it's not Rails-specific anymore. > There's also Merb, which is used by SproutCore sort of in the way the OP > is describing. I've been trying to use Merb as a replacement for Rails in general. But then, I haven't done much with either lately. Unless something's changed, there was a plan for Merb and Rails to merge -- that Rails 3 would be Merb 2, and vice versa. ...and there's also Ramaze. And Nitro. And... It seemed like the original poster was asking someone to recommend a single choice. I think for that problem, Sinatra beats Merb, hands-down -- right down to the fact that it's constructing a text response. > > On the other hand, you could technically deploy this with Passenger. > > Some > > people find it easier, but I like deploying with Capistrano anyway. > > They're not mutually exclusive. Cap + Passenger is a great combination. Granted, but when I talk to people using Passenger, the #1 reason they tell me is ease of deployment -- the idea that you'd just FTP up a file into a certain directory to restart your app. Compared to that, 'cap deploy' seems at least as simple and MUCH safer. And once you've got that set up, a more complex deployment only means a more complex cap script -- the Github setup doesn't really look harder to use than Passenger.