Skip to content

Instantly share code, notes, and snippets.

@WaleedAshraf
Created March 25, 2018 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WaleedAshraf/59282374c51e7c1f7d69cff96f484855 to your computer and use it in GitHub Desktop.
Save WaleedAshraf/59282374c51e7c1f7d69cff96f484855 to your computer and use it in GitHub Desktop.
var pm2Config = {
"apps": [
{
"name": "app",
"script": "app.js",
"exec_mode": "cluster_mode",
"instances": "max"
},
{
"name": "smsWorker",
"script": "smsWorker.js",
"instances": 1
},
{
"name": "emailWorker",
"script": "emailWorker.js",
"instances": 1
},
{
"name": "notifWorker",
"script": "notifWorker.js",
"instances": 1
}
]
};
module.exports = pm2Config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment