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
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to