Skip to content

Instantly share code, notes, and snippets.

@Mcdavid95
Created February 29, 2020 20:13
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 Mcdavid95/fcead84583b942230f5f597cdadc4dcf to your computer and use it in GitHub Desktop.
Save Mcdavid95/fcead84583b942230f5f597cdadc4dcf to your computer and use it in GitHub Desktop.
module.exports = {
apps: [
{
name: 'API',
script: 'src/index.js',
exec_mode: 'cluster_mode',
instances: 'max',
env: {
NODE_ENV: 'production'
}
},
{
name: 'emailWorker',
args: 'consumeMessage',
exec_mode: 'fork',
watch: false,
script: 'src/emailWorker.js',
instances: '1'
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment