Current time: 05-19-2012, 06:05 AM Hello There, Guest! (LoginRegister)

Post Reply 
Rails FCGI cache..
12-29-2005, 10:37 AM
Post: #1
Rails FCGI cache..
Hi

I have a working running Rails project here on Dreamhost, one that is running in development version and other that is using FCGI and running in production mode.

When I have to do some changes to the one in production mode, they won't appear on the website until maybe hours later.. which means that a simple typo means hours of downtime!.

Does anyone know how I can force FCGI to refresh so it reflects the code on the server?
Find all posts by this user
Quote this message in a reply
12-29-2005, 11:23 AM
Post: #2
Rails FCGI cache..
Run:

killall -USR1 dispatch.fcgi

This will send a USR1 signal to all of the running FCGI dispatchers. Dispatchers will terminate and be restarted the next time they receive a request.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-15-2006, 11:26 AM
Post: #3
Rails FCGI cache..
Does it matter where I run that from?
Visit this user's website Find all posts by this user
Quote this message in a reply
08-15-2006, 12:45 PM
Post: #4
Rails FCGI cache..
No, you can run the command from any directory. I actually find that using TERM instead of USR1 works better for the current (and recent) Rails versions.

Just log in to your shell account and run:

killall -TERM dispatch.fcgi
Visit this user's website Find all posts by this user
Quote this message in a reply
08-15-2006, 12:53 PM
Post: #5
Rails FCGI cache..
Thanks for your response; I just tried the -TERM version of the command, but I'm still getting the "no process killed" message, unfortunately. Thanks anyway, though!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: