Skip to content

Instantly share code, notes, and snippets.

@RyanDsilva
Last active July 5, 2020 15:35
Show Gist options
  • Save RyanDsilva/65e72ea1f2800068bf4dd6ae0bd26708 to your computer and use it in GitHub Desktop.
Save RyanDsilva/65e72ea1f2800068bf4dd6ae0bd26708 to your computer and use it in GitHub Desktop.
Basic PM2 configuration for a single application deployment
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