使用sailsjs重新启动pm2循环



我对pm2有问题。我的起始json是

{
"apps" : [{
    "name"        : "sails",
    "script"      : "app.js",
    "log_date_format"  : "DD-MM-YYYY HH:mm Z",
    "ignoreWatch" : ["[\/\\]\./", "node_modules", ".tmp", "views", "assets", ".idea"],
    "watch"       : true
}]
}

然后我做

pm2 start dev.json

PM2将无限期重启,并显示此消息

PM2: 2015-02-11 14:56:39: Change detected for app name: sails - restarting
PM2: 2015-02-11 14:56:39: Process with pid 5766 still not killed, retrying...
PM2: 2015-02-11 14:56:39: App closed with code: 0
PM2: 2015-02-11 14:56:39: App name:sails id:0 exited
PM2: 2015-02-11 14:56:40: Process with pid 5766 killed
PM2: 2015-02-11 14:56:40: Starting execution sequence in -fork mode- for app name:sails id:0
PM2: 2015-02-11 14:56:40: App name:sails id:0 online

但没有更改任何文件。在帆注销调试消息后,似乎是PM2重新启动。有什么想法吗?

我通过将PM2版本frpm 0.125切换到0.11 解决了这个问题

我也遇到了类似的问题。安装3天前发布的最新版本0.12.7,看看第969期链接中的信息是否能帮助您。

https://github.com/Unitech/PM2/issues/969

最新更新