From: Nick Dr Date: 2009-11-27T02:03:41+09:00 Subject: Re: Ruby a good choice for CGI? = > That sounds tailor-made for Sinatra. However, you should learn something > about > REST, first -- are you sure POST is appropriate? Ok I tried sinatra. It seems like it fires up webrick on port 4567, so I take it there's some config file I need to mess with, or my hosting provider deals with so it'll run on Apache instead? Also, I can hit my sinatra ruby script from my browser, but when I tried to hit it from a jQuery AJAX request, I get nothing back and the sinatra console says that it was an OPTIONS request instead of the GET request it reports when firefox asks for the page. What am I doing wrong here? The idea was to jquery post to a ruby script for some JSON data and then update my canvas based on that data. > FastCGI is obsolete, so scratch that. The host I was considering, HostingRails, says they'll do a FastCGI deployment for me. I am (hopefully) expecting pretty high frequency traffic. Like several hits/min 24/7, but never > 1000 hits per minute, because this will be a global app available via facebook, so the time zones should spread it out for me. Are you sure FastCGI isn't a good option for this? > Passenger and mod_ruby are essentially the same thing, IIRC. But my > understanding is that Passenger works with Rack, which doesn't feel at > all > like CGI. So these might be deployment options, but they have nothing to > do > with how you write and develop your app. So I can just use the Sinatra lib to route the request, deal with cookies and sessions, and then hand it to my hosting provider and they'll set it up properly? Thanks for all the advice! -- Posted via http://www.ruby-forum.com/.