Jedrin
2011-May-25 17:51 UTC
Rails setting so that no need to bounce the server on code changes ?
Isn''t there a rails setting where if you make a change to a controller or delete a file you don''t have to restart server (using webrick) ? -- 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.
Colin Law
2011-May-25 20:20 UTC
Re: Rails setting so that no need to bounce the server on code changes ?
On 25 May 2011 18:51, Jedrin <jrubiando-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Isn''t there a rails setting where if you make a change to a > controller or delete a file you don''t have to restart server (using > webrick) ?In the appropriate file in config/environments if you have config.cache_classes = false then files will be reloaded for each request. This is normally set false in development.rb so that you do not need to keep restarting the server, but is normally set true in production.rb in order to avoid the overheads of reloading the files all the time. Even with it false there are a few occasions when it is necessary to restart, if you change routes.rb for example. colin -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.