-
Notifications
You must be signed in to change notification settings - Fork 342
Expand file tree
/
Copy pathecosystem.config.js
More file actions
29 lines (29 loc) · 839 Bytes
/
ecosystem.config.js
File metadata and controls
29 lines (29 loc) · 839 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
module.exports = {
apps: [
{
name: "buildingai",
script: "dist/main.js",
cwd: "packages/api",
instances: "1",
exec_mode: "cluster",
autorestart: true,
watch: false,
max_memory_restart: "1G",
env: {
NODE_ENV: "production",
},
env_production: {
NODE_ENV: "production",
},
env_development: {
NODE_ENV: "development",
},
error_file: "../../logs/pm2/api-error.log",
out_file: "../../logs/pm2/api-out.log",
log_file: "../../logs/pm2/api-combined.log",
time: true,
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
],
};