Skip to content

Commit

Permalink
Set up clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioImp committed Dec 18, 2019
1 parent c6c8ac8 commit bcbbbc3
Show file tree
Hide file tree
Showing 3 changed files with 1,117 additions and 36 deletions.
14 changes: 14 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
apps : [{
name: "server",
script: "./server.js",
instances : "max",
exec_mode: "cluster",
env: {
NODE_ENV: "development",
},
env_production: {
NODE_ENV: "production",
}
}]
};
Loading

0 comments on commit bcbbbc3

Please sign in to comment.