spring-watcher-listen

Makes spring watch files using the listen gem.


License
MIT
Install
gem install spring-watcher-listen -v 1.0.0

Documentation

Listen watcher for Spring

Build Status Gem Version

This gem makes Spring watch the filesystem for changes using Listen rather than by polling the filesystem.

On larger projects this means spring will be more responsive, more accurate and use less cpu on local filesystems.

(NFS, shared VM folders and user file systems will still need polling)

Listen 2.7 and higher and 3.0 are supported. If you rely on Listen 1 you can use v1.0.0 of this gem.

Environment variables

  • DISABLE_SPRING_WATCHER_LISTEN - If set, this disables the loading of this gem. This can be useful for projects where some configurations do not support inotify (e.g. Docker on M1 Macs).

Installation

Stop Spring if it's already running:

$ spring stop

Add this line to your application's Gemfile:

gem 'spring-watcher-listen', group: :development

And then execute:

$ bundle