While using guard with Rails 4, I have faced an error:
FATAL: Listen error: unable to monitor directories for changes.
FATAL: Listen error: unable to monitor directories for changes.
To solve this problem, I have reffered :
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers
Below command in Debian system work fine for me:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
I hope this helps.