Skip to content

Instantly share code, notes, and snippets.

@vbguard
Created August 7, 2020 12:04
Show Gist options
  • Save vbguard/f8a8240ce7a3da1f16db4d56c5d14d90 to your computer and use it in GitHub Desktop.
Save vbguard/f8a8240ce7a3da1f16db4d56c5d14d90 to your computer and use it in GitHub Desktop.
pm2 config file
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