pm2脚本

作者: 陆遥远 | 来源:发表于2018-03-27 09:21 被阅读0次

{
"apps": [{
"name": "clustercc",
"cwd": "./clustercc/server",
"script": "server.js",
"env": {
"NODE_ENV": "test",
"PORT": 3000
},
"watch": false,
"ignore_watch": [
"node_modules"
],
"kill_timeout": 3000,
"max_memory_restart": "1G",
"exec_mode": "fork"
},{
"name": "taskcc",
"cwd": "./clustercc/server/daemons",
"script": "task.js",
"env": {
"NODE_ENV": "test",
"PORT": 3005
},
"watch": false,
"kill_timeout": 3000,
"max_memory_restart": "1G",
"exec_mode": "fork"
},{
"name": "pullevents",
"cwd": "./clustercc/server/shell",
"script": "pullevents.js",
"env": {
"NODE_ENV": "test",
"PORT": 3006
},
"watch": false,
"kill_timeout": 3000,
"max_memory_restart": "1G",
"exec_mode": "fork"
},{
"name": "notify",
"cwd": "./clustercc/server/shell",
"script": "notify.js",
"env": {
"NODE_ENV": "test",
"PORT": 3007
},
"watch": true,
"kill_timeout": 3000,
"max_memory_restart": "1G",
"exec_mode": "fork"
}
]}

相关文章

网友评论

      本文标题:pm2脚本

      本文链接:https://www.haomeiwen.com/subject/ypljcftx.html