Joe Ruby
2006-Aug-17 23:44 UTC
[Rails] Mongrel, development mode, and deleting/moving templates
I''m not sure what''s to blame, but it seems that if I delete or move a template, restarting is necessary. For example, I recently moved a partial from app/views/members/_login.rhtml to app/views/members/_login.mab, after which I got a blank-page-of-death. Once I restarted my Mongrel cluster, it worked. Shouldn''t changes like this get picked up automatically in development mode? Joe -- Posted via http://www.ruby-forum.com/.
Zed Shaw
2006-Aug-18 04:16 UTC
[Rails] Mongrel, development mode, and deleting/moving templates
On Fri, 2006-08-18 at 01:44 +0200, Joe Ruby wrote:> I''m not sure what''s to blame, but it seems that if I delete or move a > template, restarting is necessary. For example, I recently moved a > partial from app/views/members/_login.rhtml to > app/views/members/_login.mab, after which I got a blank-page-of-death. > Once I restarted my Mongrel cluster, it worked. Shouldn''t changes like > this get picked up automatically in development mode?If you''re on a unixish system it might be faster to hit the process with a HUP signal to do a soft restart: killall -HUP mongrel_rails This does a "soft reload" of rails, which means it also doesn''t work half the time, but might work quick for stuff like this. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
Maybe Matching Threads
- Another mongrel_cluster prerelease 1.0.1.1
- templates with same name before extension are cached
- Mongrel Cluster 0.2.1 prerelease
- Markaby template & layout (can't get them to work together)
- strange bugs while using mongrel, while running in development (and also sometimes in production mode)