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.27.2 lib/decidim/spring.rb
decidim-core-0.27.1 lib/decidim/spring.rb
decidim-core-0.27.0 lib/decidim/spring.rb
decidim-core-0.27.0.rc2 lib/decidim/spring.rb
decidim-core-0.27.0.rc1 lib/decidim/spring.rb