forked from Statsify/statsify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pm2.config.cjs
67 lines (65 loc) · 1.4 KB
/
pm2.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Copyright (c) Statsify
*
* This source code is licensed under the GNU GPL v3 license found in the
* LICENSE file in the root directory of this source tree.
* https://github.com/Statsify/statsify/blob/main/LICENSE
*/
const cron_restart = "0 20 * * *";
const exp_backoff_restart_delay = 500;
const script = "pnpm";
const with_color = "--color=16m";
const interpreter = "/bin/bash";
const env = {
FORCE_COLOR: 3,
NODE_OPTIONS: "--unhandled-rejections=warn",
};
module.exports = {
apps: [
{
name: "api",
args: `api start ${with_color}`,
script,
cron_restart,
exp_backoff_restart_delay,
interpreter,
env,
},
{
name: "discord-bot",
args: `discord-bot start ${with_color}`,
script,
cron_restart,
exp_backoff_restart_delay,
interpreter,
env,
},
{
name: "support-bot",
args: `support-bot start ${with_color}`,
script,
cron_restart,
exp_backoff_restart_delay,
interpreter,
env,
},
{
name: "verify-server",
args: `verify-server start ${with_color}`,
script,
cron_restart,
exp_backoff_restart_delay,
interpreter,
env,
},
{
name: "leaderboard-limiting",
args: `scripts limit-redis start ${with_color}`,
script,
cron_restart,
exp_backoff_restart_delay,
interpreter,
env,
},
],
};