title: Auto-starting Node.js application on Vagrant when there are changes to code
body: <p>I'm running a Node.js application on a Vagrant box and want the Node.js application to restart when anything changes on the host machine.</p>
  
  <p>But I couldn't use <a href="https://www.npmjs.com/package/nodemon" rel="nofollow">nodemon</a>. It doesn't pick up the changes in time. When I use the <code>-L</code> flag, it consumes too much CPU on the guest machine. These are currently <a href="https://github.com/remy/nodemon/issues/146" rel="nofollow">well-known issues</a>.</p>
  
  <p>I've also tried Vagrant's <a href="https://www.vagrantup.com/docs/cli/rsync-auto.html" rel="nofollow">rsync-auto</a>, but it wasn't responsive enough for some reason.</p>
  
  <p>Is there a workaround? Perhaps something I can apply on the host machine?</p>