5 messages in ru.sysoev.nginxRe: Nginx reverse proxy + mongrel and...
FromSent OnAttachments
Nicky BeDec 20, 2007 1:07 pm 
Aleksandar LazicDec 21, 2007 1:57 am 
Nicky BeDec 22, 2007 11:10 am 
Ezra ZygmuntowiczDec 22, 2007 12:23 pm 
Nicky BeDec 22, 2007 2:46 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Nginx reverse proxy + mongrel and forkActions...
From:Nicky Be (list@public.gmane.org)
Date:Dec 22, 2007 2:46:35 pm
List:ru.sysoev.nginx

Ezra Zygmuntowicz wrote:

In fact I've seen the same thing with apache as well. The answer is *do not fork* in a rails app *ever*. It will just not work and will lead to subtle bugs exactly like what you are seeing. Give yourself a break and do not fork a rails app.

Thanks for the reply-- I'll look into Bj, although I was hoping to avoid going down that path. If you could, could you elaborate on why forking is a bad idea? From what I've read, active record db connections seemed to be the culprit. It seems odd to me that my app works fine if I don't front it with nginx, or if I use an alternative reverse proxy (pen.)

Thanks Ezra.