-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
59 lines (59 loc) · 1.35 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
56
57
58
59
module.exports = {
apps: [
{
name: "server",
cwd: "./server",
script: "./app.js",
instances: 2,
out_file: "/logs/pm2.out.log",
error_file: "/logs/pm2.err.log",
node_args: ["--max_old_space_size=256"],
max_memory_restart: '256M',
max_restarts: '10',
restart_delay: '3000',
env_production: {
NODE_ENV: "production"
},
env_development: {
NODE_ENV: "development"
},
},
{
name: "admin",
cwd: './admin/v2',
script: 'npm',
args: "start",
instances: 1,
out_file: "/logs/pm2.out.log",
error_file: "/logs/pm2.err.log",
node_args: ["--max_old_space_size=256"],
max_memory_restart: '256M',
max_restarts: '3',
restart_delay: '3000',
env_production: {
NODE_ENV: "production"
},
env_development: {
NODE_ENV: "development"
}
},
{
name: "chat",
cwd: "./chat",
script: "./app.js",
instances: 1,
out_file: "/logs/pm2.out.log",
error_file: "/logs/pm2.err.log",
node_args: ["--max_old_space_size=128"],
max_memory_restart: '128M',
max_restarts: '10',
restart_delay: '3000',
env_production: {
NODE_ENV: "production"
},
env_development: {
NODE_ENV: "development"
}
},
]
}