Created
February 29, 2020 20:13
-
-
Save Mcdavid95/fcead84583b942230f5f597cdadc4dcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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