FCGI & resetting view cache

I’m running my rails app with FCGI. I updated a view and noticed it
didn’t update the site. Deleted it and it even still shows up. I also
tried “pkill -9 -f dispatch.fcgi”.

I thought I had done this in the past with controllers and views and
it updated… How do I reset it to load the new view files?

Anyone have any idea?

I just tried to alter a controller too and It’s not taking any of the
changes. =/

Brent wrote:

I’m running my rails app with FCGI. I updated a view and noticed it
didn’t update the site. Deleted it and it even still shows up. I also
tried “pkill -9 -f dispatch.fcgi”.

I thought I had done this in the past with controllers and views and
it updated… How do I reset it to load the new view files?

Here is a simple bash script I use to kill all dispatchers:

#!/bin/bash

PRCS=“dispatch.fcgi”
TMP_FILE="/tmp/prcss.txt"
TMP_FILE2="/tmp/prcss2.txt"

ps -ef |grep “$PRCS” > $TMP_FILE
awk '{ print $2 } ’ $TMP_FILE > $TMP_FILE2

for i in cat $TMP_FILE2
do
echo “pid: $i”
kill -9 $i
done

rm -f $TMP_FILE $TMP_FILE2

Brent wrote:

I’m running my rails app with FCGI.

Why on earth are you doing that?

I updated a view and noticed it
didn’t update the site. Deleted it and it even still shows up. I also
tried “pkill -9 -f dispatch.fcgi”.

I thought I had done this in the past with controllers and views and
it updated… How do I reset it to load the new view files?

Are you in production mode? If so, there’s probably a caching issue,
and restarting the server should do the trick.

Also, make sure that there are no backup or merge files around. Various
editors and version control systems leave files around with names like
something.rb~ or something.rb.orig , and these can sometimes confuse
Rails.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs