简体   繁体   中英

Rails server needs restart every time I make changes?

Whenever I make changes in the controller or models I need to re-start the server. Please, kindly clarify me. Rails version 5.2.2

Check your config/environments/development.rb file and see if you can find these lines: set config.cache_classes = false and config.reload_classes_only_on_change = false

You can refer to these answers:

Rails Server needs restart every time I make changes? why?

Vagrant shared folder with rails server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM