I have created this watchman trigger:
watchman -j <<-EOT
["trigger", "/home/gergra/code/essence/essence_backend", {
"name": "restart_hanami",
"expression": ["anyof", ["match", "*.rb"]],
"command": [
"alert 'restarte hanami'",
"killall bundle",
"bundle exec hanami server"],
"stdout": ">/home/gergra/hs.log"
}]
EOT
It should stop puma with the kill command and then restart it again. If I take a look into the log file, I see that it does do things but the commands are never executed. What am I missing?