-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecosystem.config.js
49 lines (46 loc) · 1.03 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// PM2 startup script
const env = require("dotenv").config();
const { NODE_ENV } = process.env;
const defaults = {
merge_logs: NODE_ENV !== "development",
log_date_format: "MM/DD/YYYY HH:mm:ss",
env: {
NODE_ENV,
NODE_PATH: "./build/src",
...env.parsed,
},
};
module.exports = {
apps: [
{
name: "meta-init",
out_file: "/tmp/demo-init.log",
script: "build/src/init.js",
...defaults,
},
{
name: "demo-auth-api",
out_file: "/tmp/demo-auth-api.log",
script: "build/src/api/auth/index.js",
...defaults,
},
{
name: "demo-admin-api",
out_file: "/tmp/demo-admin-api.log",
script: "build/src/api/admin/index.js",
...defaults,
},
{
name: "demo-files-api",
out_file: "/tmp/demo-files-api.log",
script: "build/src/api/files/index.js",
...defaults,
},
{
name: "kafka-services",
out_file: "/tmp/demo-kafka-services.log",
script: "build/scripts/kafka-services.js",
...defaults,
},
],
};