The Rails app expects me to restart my webrick server for any changes to my controller

I am working on an existing Rails 2.3.x application, so I worked on it, and with great difficulty I was able to run the application. But now for every small change in one of my controllers it is expected that I will restart my serer, otherwise the changes will not be reflected back. Let's take an example script here. Let's just say in one of the before_filter methods. I just added the puts statement at the top of the method, and it did not print in the log after restarting the server that it prints. Can someone please tell me if I missed something.

+3
source share
3 answers

What environment are you using?

"", . .

, , config/development.rb :

  # In the development environment your application code is reloaded on
  # every request.  This slows down response time but is perfect for development
  # since you don't have to restart the webserver when you make code changes.
  config.cache_classes = false
+3

config.threadsafe! , config.cache_classes = false, threadafe true cache_classes, .

+1

, . Rails BufferedLogger. . .

0

Source: https://habr.com/ru/post/1745760/


All Articles