Skip to content

Instantly share code, notes, and snippets.

@masayuki038
Last active December 23, 2015 02:39
Show Gist options
  • Save masayuki038/6567741 to your computer and use it in GitHub Desktop.
Save masayuki038/6567741 to your computer and use it in GitHub Desktop.

Watchdog

Install

prepare

edit /root/.pip/pip.conf

[global]
index-url=https://pypi.python.org/simple

[install]
use-mirrors = true

pip install

$ pip install watchdog

Tips

Filter warnings

When running 'watchmedo` command, having some warnings. Filtering them with '-W ignore'

$ vim /usr/local/bin/watchmedo
#!/usr/local/bin/python -W ignore

Watching for erlang source files on emacs

$ watchmedo shell-command --patterns="*.erl;*.hrl" --ignore-patterns="*.#*.erl;*.#*.hrl" --recursive --wait --command="make test" include src test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment