Skip to content

Commit

Permalink
added pm2 configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
phiilu committed Oct 30, 2017
1 parent 69423d6 commit 93e2c87
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const os = require("os");
const env = require("dotenv").config();

const cores = os.cpus().length;

module.exports = {
apps: [
{
name: "mailman",
script: "build/main.js",
env: env.parsed,
watch: ["build", "client/build"],
ignore_watch: ["node_modules"],
watch_options: {
followSymlinks: false
},
instances: cores,
exec_mode: "cluster"
}
]
};

0 comments on commit 93e2c87

Please sign in to comment.