Skip to content

Instantly share code, notes, and snippets.

@CherryDT
Created April 15, 2020 14:13
Show Gist options
  • Save CherryDT/66e43fb9a2c0d7529147b9ba7620d576 to your computer and use it in GitHub Desktop.
Save CherryDT/66e43fb9a2c0d7529147b9ba7620d576 to your computer and use it in GitHub Desktop.
PM2 example app list
{
"apps": [
{
"name": "test-app",
"script": "npm",
"args": "start",
"cwd": "/home/ubuntu/app/test-app",
"env": {
"PORT": 3000
},
"log_file": "/home/ubuntu/.pm2/logs/test-app-combined.log",
"log_date_format": "YYYY-MM-DD HH:mm:ss",
"exp_backoff_restart_delay": 3000
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment