-
Notifications
You must be signed in to change notification settings - Fork 4
/
ecosystem.config.js
55 lines (47 loc) · 1.4 KB
/
ecosystem.config.js
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
const Settings = require('./Server/Global/Settings/System');
let bots = [];
if (Settings.Welcome.Tokens.length > 0)
bots.push({
name: Settings.serverName + '-Welcomes',
namespace: 'ertu',
script: 'Start.js',
watch: false,
exec_mode: 'cluster',
max_memory_restart: '2G',
cwd: './Server/Welcomes/',
args: ['--color', '--watch'],
});
if (Settings.Main.Moderation)
bots.push({
name: Settings.serverName + '-Moderation',
namespace: 'ertu',
script: 'Shards.js',
watch: true,
exec_mode: 'cluster',
max_memory_restart: '2G',
cwd: './Server/Mainframe/Moderation',
args: ['--color', '--watch'],
});
if (Settings.Main.Statistics)
bots.push({
name: Settings.serverName + '-Statistics',
namespace: 'ertu',
script: 'Shards.js',
watch: false,
exec_mode: 'cluster',
max_memory_restart: '2G',
cwd: './Server/Mainframe/Statistics',
args: ['--color', '--watch'],
});
if (Settings.Main.Controller)
bots.push({
name: Settings.serverName + '-Controller',
namespace: 'ertu',
script: 'Shards.js',
watch: false,
exec_mode: 'cluster',
max_memory_restart: '2G',
cwd: './Server/Mainframe/Controller',
args: ['--color', '--watch'],
});
module.exports = { apps: bots };