Skip to content

Commit b40468d

Browse files
committed
fixup! Configure PM2 for single instance to prevent sync conflicts
1 parent d661615 commit b40468d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pm2.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
{
44
"name": "ratesServer",
55
"script": "lib/index.js",
6-
"instances": 1,
7-
"exec_mode": "fork",
8-
"env": {
9-
"ENABLE_BACKGROUND_SYNC": "false"
10-
},
6+
"instances": "max",
7+
"exec_mode": "cluster",
118
"error_file": "/var/log/pm2/ratesServer.error.log",
129
"out_file": "/var/log/pm2/ratesServer.out.log"
1310
},

0 commit comments

Comments
 (0)