-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.config.js
executable file
·32 lines (32 loc) · 1.31 KB
/
start.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
module.exports = {
apps: [
{
name: "discover-keeper-api-server",
script: "./app/service/gateway.js",
watch: false,
ignore_watch: ["node_modules", "logs", "report"],
out_file: "./logs/pm2/gateway.out.log",
error_file: "./logs/pm2/gateway.err.log",
merge_logs: true,
max_memory_restart: "1G",
env: {NODE_ENV: "production"},
exec_mode: "fork",
instances: 1,
autorestart: true,
},
{
name: "discover-keeper-kcc-core-event",
script: "./app/service/dapp_event.js",
watch: false,
ignore_watch: ["node_modules", "logs", "report"],
out_file: "./logs/pm2/cronjob.kcc.core.event.synchronizer.out.log",
error_file: "./logs/pm2/cronjob.kcc.core.event.synchronizer.err.log",
merge_logs: true,
max_memory_restart: "1G",
env: {NODE_ENV: "production"},
exec_mode: "fork",
instances: 1,
autorestart: true,
}
],
};