rails / spring

Rails application preloader
MIT License
2.81k stars 341 forks source link

Watch app embedded engine initializers #723

Closed andrewn617 closed 3 months ago

andrewn617 commented 3 months ago

I want to be able to configure spring's file watcher to watch additional files when booting my app. Specifically, I want to update Rails to watch the config/initializers directory of engines defined within the application, so that spring will automatically reload when updating those initializers like it does with the root config/initializers.

By iterating engine descendants we can watch paths that intersect with Rails.root.