From 0595f0a4f585eb67bcb6dd3c3dc8c65e5d0e68d1 Mon Sep 17 00:00:00 2001 From: Robert Klebes Date: Tue, 25 Jun 2019 06:27:40 -0400 Subject: [PATCH] Add pm2 support Add json file to launch and monitor in pm2 and allow automatic restarts if the bot crashes --- modmailbot-pm2.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 modmailbot-pm2.json diff --git a/modmailbot-pm2.json b/modmailbot-pm2.json new file mode 100644 index 0000000..6322645 --- /dev/null +++ b/modmailbot-pm2.json @@ -0,0 +1,8 @@ +{ + "apps": [{ + "name": "ModMailBot", + "cwd": "./", + "script": "npm", + "args": "start" + }] +}