Controlling Rail fcgi process name

Controlling Rail fcgi process name

Posted by: jonsmirl
Posted on: 2006-01-10 22:31:00

I'm hosting multiple domains but all of my fcgi processes are named:

/usr/bin/ruby dispatch.fcgi

I'd like them to be named:

/usr/bin/ruby /fullpath/domain/public/dispatch.fcgi

That way my deployment script will only kill the fcgi's for the right domain, not all of them. How is the process name controlled?

Re: Controlling Rail fcgi process name

Posted by: jsusser
Posted on: 2006-02-12 07:59:00

You should be able to mod this yourself. Change the name of the dispatch.fcgi file in RAILS_ROOT/public to whatever you want it to be, say mydomain-dispatch.fcgi. Then edit .htaccess in public to call your renamed fcgi instead of dispatch.fcgi. I haven't tried this, but it seems like it should work.

Tags: fcgiusrdispatchrubydomaindomainshosting