I did one using golang too. <a href="https://github.com/shenfeng/http-watcher" rel="nofollow">https://github.com/shenfeng/http-watcher</a><p>It monitors a directory for change (using notify facility provided by the OS), upon change, will execute a given command given by command line arg `-command`. If any browser connected, it will try to refresh the browser too.
<p><pre><code> flag.StringVar(&path, "watch", ".", "path to be watched")
flag.StringVar(&command, "command", "echo", "path to be watched")
</code></pre>
I think there may be a mistake?
I'm actually developing a node.js application right now and I wondering if there was a easy way to live update my changes instead of restarting my app manually.<p>This is going to be a great help towards that; props to the author.