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? -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Anyone have any idea? I just tried to alter a controller too and It''s not taking any of the changes. =/ -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.