avoscloud
命令可以监视代码变化自动重启,是一个不错的功能,然而它在 lib/runtime.js
的 getMonconfig
方法中写死了只对 'js json'
两个扩展名监视。
这使得我如果使用 CoffeeScript 开发的话就没有自动重启了。
建议增加 coffee
扩展名。
getMonconfig: function(args) {
return {
exec: this.exec,
ignore: [
'.git',
'node_modules/**/node_modules'
],
"env": {
LC_APP_ID: app.appId,
LC_APP_KEY: masterKey,
LC_APP_MASTER_KEY: masterKey,
LC_APP_PORT: run.getPort()
},
ext: 'js json', // <-- 这里写死了只监视 js 和 json
script: 'server.js',
args: args
};
-
创建时间
15年6月16日
-
最后回复
15年6月16日
-
2
回复
-
941
浏览
-
2
用户