How do I reset rails in production mode on DreamHost?

Hello!

I am testing rails on DreamHost.
I believe it’s running on apache.
In development mode, it ran very slowly.
So I changed it into production mode and switched to fcgi.
It’s very fast now.
But the problem is that if I add actions to a controller, it’s not
applied.
I know that in production mode, I need to restart web server.
But I don’t control the web server.
How can I reset rails?

Thanks in advance.

Sam

In your shell for Dreamhost, issue this command

killall -USR2 dispatch.fcgi

That usually works for me. If it doesn’t, you’ll need to find all your
dispatchers

ps -ef | grep dispatch.fcgi

and kill each one by process id

kill -9 (process id)

Brian H. wrote:

In your shell for Dreamhost, issue this command

killall -USR2 dispatch.fcgi

That usually works for me. If it doesn’t, you’ll need to find all your
dispatchers

ps -ef | grep dispatch.fcgi

and kill each one by process id

kill -9 (process id)

Thanks, Brian.
The second method works.
I’m not sure about the first one yet.

Sam

Sam K. wrote:

Brian H. wrote:

In your shell for Dreamhost, issue this command

kill -9 (process id)

Thanks, Brian.
The second method works.
I’m not sure about the first one yet.

Sam

You might want to get a copy of my fcgi_watch script:

http://www.alevans.com/dl/fcgi_watch-0.3.1.tgz

I wrote it specifically to handle some issues with FCGI processes on
Dreamhost. It will come in especially handy when you deploy your second
Rails app:-)

–Al Evans

Al Evans wrote:

You might want to get a copy of my fcgi_watch script:

http://www.alevans.com/dl/fcgi_watch-0.3.1.tgz

I wrote it specifically to handle some issues with FCGI processes on
Dreamhost. It will come in especially handy when you deploy your second
Rails app:-)

–Al Evans

Oh, thank you very much.
I’ll definately check it out.

Thanks again.

Sam

Al:
Love that script but I always forget where it is :slight_smile:
Thanks!