-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecosystem.config.js
51 lines (51 loc) · 1.09 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: 'weider',
script: 'app.js',
log_file: 'log/comb.log',
out_file: 'log/out.log',
error_file: 'log/error.log',
log_date_format: 'YYYY-MM-DD HH:mm Z',
watch: ['config', 'controllers', 'public', 'routes', 'views'],
max_memory_restart: '1G',
max_restarts: 5,
min_uptime: 5000,
autorestart: true,
instances: 1,
env_dev: {
NODE_ENV: 'development',
LOG_LEVEL: 0,
},
env_deb: {
NODE_ENV: 'debug',
LOG_LEVEL: 2,
},
env_prod: {
NODE_ENV: 'production',
LOG_LEVEL: 5,
},
},
{
name: 'receiver',
script: 'tests/receiver.js',
log_file: 'NULL',
out_file: 'NULL',
error_file: 'NULL',
watch: ['tests'],
max_memory_restart: '1G',
max_restarts: 5,
min_uptime: 5000,
autorestart: true,
instances: 1,
env_dev: {
NODE_ENV: 'development',
LOG_LEVEL: 0,
},
env_deb: {
NODE_ENV: 'debug',
LOG_LEVEL: 2,
},
},
],
};