Skip to content

Commit

Permalink
feat: Init pm2 cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsafur committed Dec 29, 2019
1 parent 49f1c03 commit a560ea6
Show file tree
Hide file tree
Showing 3 changed files with 1,182 additions and 87 deletions.
19 changes: 19 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
apps : [{
name: 'MBS',
script: 'dist/index.js',

// Options reference: https://pm2.keymetrics.io/docs/usage/application-declaration/
instances: 2,
autorestart: true,
watch: false,
max_memory_restart: '1G',
exec_mode : "cluster",
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
}]
};

0 comments on commit a560ea6

Please sign in to comment.