我使用下面这行代码来监视一个目录,并在更改时运行脚本:
watchman -- trigger my_directory runTransitionChecker '*' -- ruby ./my_script.rb除了ruby ./my_script的所有输出都被定向到我的
/usr/local/Cellar/watchman390/3.9.0/var/run/watchman/blahblah-state/log文件。
从文档和帮助看,似乎我应该使用-f标志,但似乎没有做到这一点。
发布于 2016-04-04 01:37:13
我建议你这样做是为了获得一个更新版本的watchman:
brew update
brew install watchman然后,您可以使用https://facebook.github.io/watchman/docs/watchman-make
https://stackoverflow.com/questions/35030523
复制相似问题