Add pm2 support

Add json file to launch and monitor in pm2 and allow automatic restarts
if the bot crashes
master
Robert Klebes 2019-06-25 06:27:40 -04:00
parent 3bec7ba642
commit 0595f0a4f5
1 changed files with 8 additions and 0 deletions

8
modmailbot-pm2.json Normal file
View File

@ -0,0 +1,8 @@
{
"apps": [{
"name": "ModMailBot",
"cwd": "./",
"script": "npm",
"args": "start"
}]
}