On some systems the rb-fsevent gem is not doing its job and the --force-polling parameter is required. I hacked the script to allow for --force-polling.
function run_guard() {
cmd="guard --force-polling"
cd "$1"
if [[ $? -eq 0 ]] ; then
if [[ -s "Gemfile" ]] ; then
cmd="bundle exec guard --force-polling"
fi
printf "Running '$cmd'. All output/failures from this point on is from the '$cmd' command.\n\n"
$cmd
else
printf "Failed to change into project root directory '$1', guard could not be started.\n\n"
fi
}
On some systems the rb-fsevent gem is not doing its job and the --force-polling parameter is required. I hacked the script to allow for --force-polling.