rails vagrant windows changes in controller delayed

不问归期 提交于 2019-12-25 04:01:08

问题


I'm running into a very weird problem with Vagrant. I believe it's something that started after I updated to Vagrant 1.6.1.

Lets say I'm opening a web page X in controller Y. If I change the view of that page and I click refresh I see the changes immediately. If I change the controller somehow and I click refresh nothing changes. I have to wait for around 40 seconds for the changes to take effect.

I'm running:

  • Vagrant 1.6.1
  • Rails 4.0.1
  • Thin 1.6.1
  • Windows 7

Such delays make development very slow and frustrating.


回答1:


I found some solution, it's not optimal, but it lets me work. Add this line of code to development.rb:

config.reload_classes_only_on_change = false


来源:https://stackoverflow.com/questions/24574824/rails-vagrant-windows-changes-in-controller-delayed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!