carlos8f / buffet

Performance-oriented static file server
http://carlos8f.github.com/node-buffet
190 stars 12 forks source link

use buffet in windows #8

Closed jinxc closed 11 years ago

jinxc commented 11 years ago

when files change,the server will shut down

events.js:71 throw arguments[1]; // Unhandled 'error' event ^ Error: watch EPERM at errnoException (fs.js:806:11) at FSEvent._handle.onchange (fs.js:824:26)

and there are other problems when i use buffet in windows. does buffet suppert windows?

carlos8f commented 11 years ago

I haven't tested on Windows at all, but looks like your problem is a bug in fs-watch-tree, a dependency of buffet. File watching is very OS-specific and a reliable cross-platform solution has been elusive (even the node core fs.watch api is insufficient, thus the dependency). Have you tried disabling file watching with the watch: false option?

jinxc commented 11 years ago

Thanks for your answer. I have tried disabling file watching with the watch: false option, it's ok, but in reality when my app is running, files folder will change at the same time. I think i have to find another way... Anyway, thanks a lot!