Module: Decidim::SpringWatcher
- Defined in:
- lib/decidim/spring.rb
Overview
A special Spring watcher for Decidim to ignore specific paths from the watching causing excessive use of inodes, issues with CPU usage and with startup/stop. This should be loaded at the application’s config/spring.rb file.
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
9 10 11 12 |
# File 'lib/decidim/spring.rb', line 9 def start super listener.ignore(/^(node_modules|storage|tmp)/) end |