-
Notifications
You must be signed in to change notification settings - Fork 1
/
ecosystem.config.json
37 lines (37 loc) · 935 Bytes
/
ecosystem.config.json
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
{
"apps": [
{
"name": "node-express-boilerplate:production",
"script": "build/server.js",
"instances": 1,
"autorestart": true,
"watch": false,
"time": true,
"exec_mode": "cluster",
"error_file": "logs/err.log",
"out_file": "logs/out.log",
"merge_logs": true,
"log_date_format": "YYYY-MM-DD HH:mm:ss",
"env": {
"NODE_ENV": "development",
"PORT": 5000,
"LOG_LEVEL": "info",
"DOTENV_CONFIG_PATH": ".env.development"
},
"env_staging": {
"NODE_ENV": "staging",
"PORT": 5000,
"LOG_LEVEL": "info",
"DOTENV_CONFIG_PATH": ".env.staging"
},
"env_production": {
"NODE_ENV": "production",
"PORT": 5000,
"LOG_LEVEL": "info",
"DOTENV_CONFIG_PATH": ".env.production"
},
"max_memory_restart": "500M",
"restart_delay": 5000
}
]
}