express 中可不可以实现热部署 ? 不然每次修改了文件都要重新启动服务? 这样的话开发起来似乎太麻烦了。
8 回复
window7,node0.6.12,运行node-dev app.js,报错: [ERROR] Error Error: use fs.watch api instead at Object.watchFile (fs.js:734:11) at watch (C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-dev\w rapper.js:61:6) at Object…js (C:\Users\Administrator\AppData\Roaming\npm\node_modules\node- dev\wrapper.js:81:7) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Module.require (module.js:354:17) at require (module.js:370:17) at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modul es\node-dev\wrapper.js:144:1) at Module._compile (module.js:441:26) at Object.<anonymous> (module.js:459:10)