gpt4 book ai didi

node.js - pm2 循环使用 sailsjs 重新启动

转载 作者:太空宇宙 更新时间:2023-11-04 02:29:00 24 4
gpt4 key购买 nike

我的 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 启动 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

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

最佳答案

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

关于node.js - pm2 循环使用 sailsjs 重新启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28454008/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com