update pm2 to use clusering mode
This commit is contained in:
parent
99152f6e37
commit
6ce8515cf3
1 changed files with 3 additions and 1 deletions
|
@ -3,5 +3,7 @@
|
||||||
"script": "index.js",
|
"script": "index.js",
|
||||||
"env": {
|
"env": {
|
||||||
"NODE_ENV": "production"
|
"NODE_ENV": "production"
|
||||||
}
|
},
|
||||||
|
"instances" : 2,
|
||||||
|
"exec_mode" : "cluster"
|
||||||
}
|
}
|
Loading…
Reference in a new issue