简体   繁体   中英

Rails ActionController::Live without restart server on developpement

I'm using SSE (Server Sent Event) in rails with the ActionController::Live of rails 4.

It's working fine. But in developpement, I have to defined my configuration like this :

Rails.application.configure do

   config.cache_classes = true
   config.eager_load = true

I have to restart the puma server each time I do a modification.

Is there a way to do that without restart ?

Your configuration of config.cache_classes = true explicitly disables hot-reloading of classes when they change. You'll have to set that to false in development to avoid server restarts between changes.

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