generated from HeraldStudio/herald-webservice-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpm2-library-show-api.js
74 lines (74 loc) · 2.02 KB
/
pm2-library-show-api.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
module.exports = {
apps:[ {
name: "library-show-api-1",
script: "/srv/herald-library-microservice/app.js",
cwd: "/srv/herald-library-microservice",
autorestart: true,
args:"--port=3010",
interpreter_args:"--tls-min-v1.0",
watch: true,
env: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
env_production: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
exec_mode: "fork"
},
{
name: "library-show-api-2",
script: "/srv/herald-library-microservice/app.js",
cwd: "/srv/herald-library-microservice",
autorestart: true,
args:"--port=3011",
interpreter_args:"--tls-min-v1.0",
watch: true,
env: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
env_production: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
exec_mode: "fork"
},
{
name: "library-show-api-3",
script: "/srv/herald-library-microservice/app.js",
cwd: "/srv/herald-library-microservice",
autorestart: true,
args:"--port=3012",
interpreter_args:"--tls-min-v1.0",
watch: true,
env: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
env_production: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
exec_mode: "fork"
},
{
name: "library-show-api-4",
script: "/srv/herald-library-microservice/app.js",
cwd: "/srv/herald-library-microservice",
autorestart: true,
args:"--port=3013",
interpreter_args:"--tls-min-v1.0",
watch: true,
env: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
env_production: {
NODE_ENV: "production",
UV_THREADPOOL_SIZE: 128
},
exec_mode: "fork"
},]
}