forked from quizzedat/api-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpm2.json
More file actions
29 lines (29 loc) · 699 Bytes
/
pm2.json
File metadata and controls
29 lines (29 loc) · 699 Bytes
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
{
"apps": [
{
"name": "api-main",
"script": "./src/server.js",
"exec_mode": "cluster",
"instances": "max",
"max_memory_restart": "512M",
"autorestart": true,
"watch": false,
"max_restarts": 10,
"env": {
"NODE_ENV": "production"
},
"env_development": {
"NODE_ENV": "development"
},
"merge_logs": true,
"log_date_format": "YYYY-MM-DD HH:mm:ss Z",
"error_file": "logs/error.log",
"out_file": "logs/out.log",
"log_type": "json",
"node_args": "--max-old-space-size=512",
"kill_timeout": 3000,
"listen_timeout": 8000,
"source_map_support": true
}
]
}