Home Rails ActionController::Live without restart server on developpement
Reply: 1

Rails ActionController::Live without restart server on developpement

Xero
1#
Xero Published in 2017-11-10 13:30:53Z

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 ?

Daniel Westendorf
2#
Daniel Westendorf Reply to 2017-11-10 15:59:37Z

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.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317535 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO