meteor restart在终端控制台中显示错误"无法接收keepalive!离开"

时间:2014-09-27 08:24:23

标签: meteor

目前我正在编写Meteor 0.9.3,Ubuntu 14.04和VMware 10

每次编辑代码时,meteorjs都需要花费太多时间重启,而ubuntu终端控制台显示错误。有时它会显示"意外错误"在铬也。

=> Meteor server restarted
=> Client modified -- refreshing
I20140927-13:24:11.922(5.5)? Failed to receive keepalive! Exiting.
=> Exited with code: 1
=> Meteor server restarted
=> Client modified -- refreshing
I20140927-13:25:27.484(5.5)? Failed to receive keepalive! Exiting.
=> Exited with code: 1
=> Client modified -- refreshing
=> Exited from signal: SIGUSR2
=> Meteor server restarted
=> Client modified -- refreshing
I20140927-13:33:04.041(5.5)? Failed to receive keepalive! Exiting.
=> Exited with code: 1
=> Meteor server restarted
=> Client modified -- refreshing
I20140927-13:37:47.871(5.5)? Failed to receive keepalive! Exiting.
=> Exited with code: 1
=> Meteor server restarted
=> Client modified -- refreshing
I20140927-13:42:04.362(5.5)? Failed to receive keepalive! Exiting.
=> Exited with code: 1
=> Client modified -- refreshing
=> Meteor server restarted

meteor package list that i used in my project

ubuntu terminal console

1 个答案:

答案 0 :(得分:2)

这是known issue。修复程序目前在开发分支上,我假设它将成为0.9.3之后的下一次更新的一部分。正如Nick Martin所建议的那样,您可以添加:

process.argv = _.without(process.argv, '--keepalive');
Meteor.startup(function () { console.log("LISTENING"); });

在您的服务器代码中的某个位置,现在应该提供一个可行的但是hacky解决方案。