From: "Jesús Gabriel y Galán" Date: 2009-11-26T04:50:41+09:00 Subject: Re: Ruby a good choice for CGI? On Wed, Nov 25, 2009 at 8:12 PM, Nick Dr wrote: > I started reading online and people said pure CGI was way too slow b/c > I'll be loading and disposing of all my code and db connections each > request. That sounds bad. So what do I do? I've be told things about > FastCGI, Passenger, mod_ruby, Rack, Sinatra, Camping, etc. and I can't > even figure out which one I need! > > Can someone point me in the right direction here? My app is VERY small. > Practically no code, no HTML output. All I need is to execute the 2 or 3 > Ruby functions I already have, on the net, with some basic > cookie/session support. What's the least headache(and not terribly slow) > way to do this? I've been doing little apps with Sinatra and I'm very happy with it. Pretty simple if you just need to implement 2 or 3 get requests: require 'sinatra/base' class MyClass < Sinatra::Base get '/' do "hello world" end end MyClass.run! Any rack-based framework (as Sinatra) can be deployed in a number of ways including Phussion Passenger (apache) or most ruby webservers, like Thin. Hope this helps, Jesus.