Created
April 15, 2020 14:13
-
-
Save CherryDT/66e43fb9a2c0d7529147b9ba7620d576 to your computer and use it in GitHub Desktop.
PM2 example app list
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
{ | |
"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