Make Forever的监视选项(-w)忽略NODEjs中的* .log文件

时间:2016-03-26 19:36:48

标签: node.js forever forever-monitor

我正在我的nodejs应用程序中安装NewRelic服务,但是永远激活了-w(watch)选项,每次修改日志NewRelic时都会重启我的应用程序。获得以下消息:

error: Because restarting script changed /home/MyProject/public_html/MyProject-api/app.js
error: Script restart Attempt # 0
(Node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners () to Increase limit.
Trace
    at Agent.EventEmitter.addListener (events.js: 160: 15)
    at initialize (/home/MyProject/public_html/MyProject-api/node_modules/newrelic/lib/instrumentation/express.js:100:9)
    at instrument (/home/MyProject/public_html/MyProject-api/node_modules/newrelic/lib/shimmer.js:50:22)
    at _postLoad (/home/MyProject/public_html/MyProject-api/node_modules/newrelic/lib/shimmer.js:81:5)
    at Function.cls_wrapMethod [as _load] (/home/MyProject/public_html/MyProject-api/node_modules/newrelic/lib/shimmer.js:235:16)
    at Module.require (module.js: 364: 17)
    at require (module.js: 380: 17)
    at Object. <anonymous> (/home/MyProject/public_html/MyProject-api/routes/login.js:4:15)
    at Module._compile (module.js: 456: 26)
    at Object.Module._extensions..js (module.js: 474: 10)
    at Module.Load (module.js: 356: 32)
error: Script restart Attempt # 1
error: Because restarting script changed /home/MyProject/public_html/MyProject-api/newrelic_agent.log

问题:我可以告诉Forever忽略newrelic_agent.log。或者这不是问题吗?

我尝试使用.foreverignore文件=&gt; * .log,但它不起作用。

NODE VERSION:v0.10.26

由于

0 个答案:

没有答案