mdlawson / piping

Keep your code piping hot! Live code reloading without additional binaries
MIT License
219 stars 13 forks source link

Add polling options #6

Closed sbuys closed 9 years ago

sbuys commented 9 years ago

Add polling options from chokidar. Resolves issues with piping over network and things like virtual machine shared directories.

From paulmillr/chokidar:

"usePolling (default: false). Whether to use fs.watchFile (backed by polling), or fs.watch. If polling leads to high CPU utilization, consider setting this to false. It is typically necessary to set this to true to successfully watch files over a network, and it may be necessary to successfully watch files in other non-standard situations. Setting to true explicitly on OS X overrides the useFsEvents default."

steida commented 9 years ago

For how long you tested that code?

sbuys commented 9 years ago

A few days. Been using with chokidar for a while.

steida commented 9 years ago

Are you using last version or piping? I had some problem with multiple logging on one file change.

sbuys commented 9 years ago

Yes latest version. I'm not seeing that problem on my machines. Did you try changing the interval?