Created
August 7, 2020 12:04
-
-
Save vbguard/f8a8240ce7a3da1f16db4d56c5d14d90 to your computer and use it in GitHub Desktop.
pm2 config file
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: 'name', | |
script: 'index.js', | |
watch: true, | |
instances: 2, | |
exec_mode: "cluster", | |
env_production: { | |
"NODE_ENV": 'production', | |
"PORT": 20004 | |
} | |
}] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment