[英]watchman cli options for watching multiple folders with exclusion and inclusion list, trigger a script and see the stdout/stderr of the script
Is there any watchman guru here?这里有守望大师吗? I'd like to know the command line options to watch.go files but not dist/ in server, watch *.js, *.jsx, but not dist/ and node_modules/ in webapp, and trigger build_deploy.sh script.我想知道观察的命令行选项。go 文件,但不是服务器中的 dist/,观察 *.js,*.jsx,但不是 webapp 中的 dist/ 和 node_modules/,并触发 build_deploy.sh 脚本。 And also, is there a way to tail the stdout/stderr when the build_deploy.sh is executing?而且,有没有办法在 build_deploy.sh 执行时跟踪标准输出/标准错误?
Checkout watchman triggers: https://facebook.github.io/watchman/docs/cmd/trigger.html结帐守望触发器: https://facebook.github.io/watchman/docs/cmd/trigger.html
You should be able to set up a trigger that runs build_deploy.sh when only files matching your criteria change.当只有符合您的条件的文件发生更改时,您应该能够设置运行 build_deploy.sh 的触发器。 It also has options to control where stdout and stderr go, so you could write them to your own log file somewhere.它还具有控制 stdout 和 stderr go 位置的选项,因此您可以将它们写入您自己的日志文件的某个位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.