Rails 5 restarts the server every time the controller or model changes

I have a firewall (ubuntu xenial) with my rails development server (5.0.0.1), and every time I change the model or controller, I need to restart the server.

I tested with puma and webrick, and the behavior is the same.

I am doing development on my main machine, which is a Windows 10 machine, the tramp creates a shared folder in which I have the code.

I checked if both the VM machine and my host are synchronized in terms of time and they look. Another thing I did was check out other topics here at SO regarding similar issues, but I was not lucky with the suggestions made.

Does anyone have any ideas on what might be the problem?

+5
source share
1 answer

I solved the problem, I came across this publication Vagrant shared folder with rails server , which pointed me in the right direction.

In general, in addition to having:

config.cache_classes = false 

in the development.rb file, you must also have:

 config.reload_classes_only_on_change = false 
+9
source

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


All Articles