6

我正在使用以下行来监视目录并在更改时运行脚本:

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文件。

从文档和 --help 看来,也许我应该使用 -f 标志,但这似乎并没有。

4

1 回答 1

0

我建议您这样做以获得更新版本的守望者:

brew update
brew install watchman

然后你可以使用https://facebook.github.io/watchman/docs/watchman-make

于 2016-04-03T17:37:13.367 回答