-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathecosystem.config.js
More file actions
60 lines (60 loc) · 1.31 KB
/
ecosystem.config.js
File metadata and controls
60 lines (60 loc) · 1.31 KB
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
module.exports = {
apps: [
{
name: 'HolyUBLTS',
script: './backend.js',
env: {
PORT: 8080,
NODE_ENV: 'development',
},
env_production: {
PORT: 8080,
NODE_ENV: 'production',
},
instances: '1',
exec_interpreter: 'babel-node',
exec_mode: 'fork',
autorestart: true,
exp_backoff_restart_delay: 100,
cron_restart: '*/10 * * * *',
kill_timeout: 3000,
watch: false,
},
{
name: 'HolyUBLTS-src-refresh',
script: './run-command.mjs',
args: 'build',
env: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
instances: '1',
exec_interpreter: 'babel-node',
exec_mode: 'fork',
autorestart: true,
restart_delay: 1000 * 60 * 10,
kill_timeout: 3000,
watch: false,
},
{
name: 'HolyUBLTS-cache-clean',
script: './run-command.mjs',
args: 'clean',
env: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
instances: '1',
exec_interpreter: 'babel-node',
exec_mode: 'fork',
autorestart: true,
restart_delay: 1000 * 60 * 60 * 24 * 7,
kill_timeout: 3000,
watch: false,
},
],
};