-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js
34 lines (34 loc) · 975 Bytes
/
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
module.exports = {
apps: [{
"name": "web",
"script": "./web/node_modules/react-scripts/scripts/start.js",
"instances": 1,
"exec_mode": "cluster",
"error_file": 'err.log',
"out_file": 'out.log',
"log_file": 'combined.log',
"watch": ["src"],
"ignore_watch": ["node_modules", ".git"],
"env": {
"NODE_ENV": "development",
"PORT": "1112"
}
}, {
name: 'api',
script: './express-api/app.js',
args: 'one two',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development',
"PORT": "1111"
},
env_production: {
NODE_ENV: 'production',
"PORT": "1111"
}
}
]
};