-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
51 lines (51 loc) · 1.3 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
module.exports = {
apps: [{
name: 'fanyi-api-development',
script: 'index.js',
autorestart: true,
output: './logs/out.log',
error: './logs/error.log',
log: './logs/combined.outerr.log',
env: {
NODE_ENV: 'development',
LOGGER_LEVEL: 'info',
port: 3000
}
}, {
name: 'fanyi-api-production',
script: 'index.js',
autorestart: true,
output: './logs/out.log',
error: './logs/error.log',
log: './logs/combined.outerr.log',
max_memory_restart: '1000M',
instances: 'max',
exec_mode: 'cluster',
env: {
NODE_ENV: 'production',
port: 3000
}
}, {
name: 'fanyi-api-test',
script: 'index.js',
autorestart: true,
output: './logs/out.log',
error: './logs/error.log',
log: './logs/combined.outerr.log',
env: {
NODE_ENV: 'test',
port: 3000
}
}, {
name: 'fanyi-api-release',
script: 'index.js',
autorestart: true,
output: './logs/out.log',
error: './logs/error.log',
log: './logs/combined.outerr.log',
env: {
NODE_ENV: 'release',
port: 3000
}
}]
};