Thanks Jason and Robby for your responses!
What was happening was this. Using Apache and apparently a single FCGI
process. Which seems weird in and of itself. This is on a shared host
which already had some glitches to be ironed out before Rails would
even work. Running a shared host serving Rails apps must be one of the
hardest jobs in the world, for real!
Anyhow, there’s this ftp routine that copies a bunch of files, and the
HTML page that’s rendered beforehand just shows a spinner kinda thing.
After all the files get copied, you’re redirected to the home page.
This works fine for me on Lighttpd, Webrick, and Apache also on my OSX
box. But on the server, everything freezes while FTP is taking place.
Literally, no-one else can use the system. Plus, the web browser
decides to crap out after about 15 seconds or less, throwing a blank
page or a network error!
For now I just moved the app back to TextDrive, since the problem was
not exhibited there. However, TextDrive is running lighttpd with four
fcgi processes, so I’m not sure if the fifth user to try this FTP
thing would be locked out or what. It’s weird. Moving to TextDrive has
spawned other problems however, such as a memory ceiling that nearly
every RMagick call hits. Oops!
So this is just to clear it up… If you’re running an app with any
kind of serious needs, Apache/FCGI is really inadequate. This has
surely been said many times before! Furthermore, shared hosts have
their own host of problems, no matter what. Lighttpd solves most of
them, in my experience, but some remain. For example, the RMagick
problem I may be able to solve by moving to MiniMagick but haven’t
gotten there yet. We shall see.
In conclusion, I would love to see someone come up with a real
dedicated Rails hosting system. It will be tough but I think you could
charge a bit more for it, provided many of these kinks were ironed
out. I know TextDrive is trying to do this, but whoever does it first
deserves to make a good living!
As an aside, I hear the brilliant Pragmatic Programmers are coming out
with a book specific to Rails deployment. Is this true? Or is it just
a rumor? If it’s true, I’m the first in line!
Cheers and thanks again,