Sha256: 71b69bef3849b663dd7383f627ef41e4b856c8b1fa82e6e34a5cb204b360e5fd

Contents?: true

Size: 462 Bytes

Versions: 25

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # 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.
  module SpringWatcher
    def start
      super
      listener.ignore(/^(node_modules|storage|tmp)/)
    end
  end
end

Spring::Watcher::Listen.prepend Decidim::SpringWatcher

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/spring.rb
decidim-core-0.28.4 lib/decidim/spring.rb
decidim-core-0.27.9 lib/decidim/spring.rb
decidim-core-0.29.0 lib/decidim/spring.rb
decidim-core-0.28.3 lib/decidim/spring.rb
decidim-core-0.27.8 lib/decidim/spring.rb
decidim-core-0.29.0.rc4 lib/decidim/spring.rb
decidim-core-0.29.0.rc3 lib/decidim/spring.rb
decidim-core-0.29.0.rc2 lib/decidim/spring.rb
decidim-core-0.29.0.rc1 lib/decidim/spring.rb
decidim-core-0.28.2 lib/decidim/spring.rb
decidim-core-0.27.7 lib/decidim/spring.rb
decidim-core-0.28.1 lib/decidim/spring.rb
decidim-core-0.27.6 lib/decidim/spring.rb
decidim-core-0.28.0 lib/decidim/spring.rb
decidim-core-0.27.5 lib/decidim/spring.rb
decidim-core-0.28.0.rc5 lib/decidim/spring.rb
decidim-core-0.28.0.rc4 lib/decidim/spring.rb
decidim-core-0.27.4 lib/decidim/spring.rb
decidim-core-0.27.3 lib/decidim/spring.rb