-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
76 lines (76 loc) · 2.21 KB
/
ecosystem.config.js
File metadata and controls
76 lines (76 loc) · 2.21 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module.exports = {
apps: [
{
name: 'hospient-api-live',
script: 'src/index.js',
cwd: '/var/www/api.hospient.com',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 3000
},
log_file: '/home/ubuntu/logs/hospient-api-live-combined.log',
out_file: '/home/ubuntu/logs/hospient-api-live-out.log',
error_file: '/home/ubuntu/logs/hospient-api-live-error.log',
log_date_format: 'YYYY-MM-DD HH:mm Z'
},
{
name: 'hospient-api-test',
script: 'src/index.js',
cwd: '/var/www/api-test.hospient.com',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development',
PORT: 3001
},
log_file: '/home/ubuntu/logs/hospient-api-test-combined.log',
out_file: '/home/ubuntu/logs/hospient-api-test-out.log',
error_file: '/home/ubuntu/logs/hospient-api-test-error.log',
log_date_format: 'YYYY-MM-DD HH:mm Z'
},
{
name: 'hospient-admin-live',
script: 'src/index.js',
cwd: '/var/www/admin.hospient.com',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 3001
},
log_file: '/home/ubuntu/logs/hospient-admin-live-combined.log',
out_file: '/home/ubuntu/logs/hospient-admin-live-out.log',
error_file: '/home/ubuntu/logs/hospient-admin-live-error.log',
log_date_format: 'YYYY-MM-DD HH:mm Z'
},
{
name: 'hospient-app-live',
script: 'src/index.js',
cwd: '/var/www/app.hospient.com',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 3002
},
log_file: '/home/ubuntu/logs/hospient-app-live-combined.log',
out_file: '/home/ubuntu/logs/hospient-app-live-out.log',
error_file: '/home/ubuntu/logs/hospient-app-live-error.log',
log_date_format: 'YYYY-MM-DD HH:mm Z'
}
]
};