Last active
July 5, 2020 15:35
-
-
Save RyanDsilva/65e72ea1f2800068bf4dd6ae0bd26708 to your computer and use it in GitHub Desktop.
Basic PM2 configuration for a single application deployment
This file contains hidden or 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: "server", | |
script: "server.js", | |
instances: "max", | |
exec_mode: "cluster", | |
env_production: { | |
NODE_ENV: "production", | |
PORT: 5000, | |
}, | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment