refactor: use redis subpib instead of cluster post

This commit is contained in:
Innei
2022-01-18 19:02:47 +08:00
parent ab796b7853
commit 0593a0d0d0
9 changed files with 65 additions and 59 deletions

View File

@@ -4,11 +4,13 @@ module.exports = {
name: 'mx-server',
script: 'dist/src/main.js',
autorestart: true,
exec_mode: 'fork',
exec_mode: 'cluster',
instances: 2,
watch: false,
max_memory_restart: '230M',
env: {
NODE_ENV: 'production',
NODE_ENV: 'development',
},
args: '--allowed_origins=dev.* --cluster',