-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
87 lines (86 loc) · 2.84 KB
/
Copy pathecosystem.config.js
File metadata and controls
87 lines (86 loc) · 2.84 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
const NODE = "/home/swdc-kjsse/.nvm/versions/node/v22.19.0/bin/node";
const NPM = "/home/swdc-kjsse/.nvm/versions/node/v22.19.0/bin/npm";
module.exports = {
apps: [
{
name: "eventio-backend",
script: "main.js",
interpreter: NODE,
cwd: "/vm-storage/projects/eventio-3.0/backend",
instances: 1,
exec_mode: "fork",
autorestart: true,
watch: false,
max_memory_restart: "512M",
env: {
NODE_ENV: "production",
PORT: "3500",
},
out_file: "/tmp/eventio/backend.log",
error_file: "/tmp/eventio/backend.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "eventio-app",
script: NPM,
args: "run start -- --port 4173",
interpreter: NODE,
cwd: "/vm-storage/projects/eventio-3.0/frontend/app",
instances: 1,
exec_mode: "fork",
autorestart: true,
watch: false,
max_memory_restart: "512M",
env: {
NODE_ENV: "production",
PORT: "4173",
},
out_file: "/tmp/eventio/app.log",
error_file: "/tmp/eventio/app.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "eventio-council-app",
script: NPM,
args: "run start -- --port 4174",
interpreter: NODE,
cwd: "/vm-storage/projects/eventio-3.0/frontend/council-app",
instances: 1,
exec_mode: "fork",
autorestart: true,
watch: false,
max_memory_restart: "512M",
env: {
NODE_ENV: "production",
PORT: "4174",
},
out_file: "/tmp/eventio/council-app.log",
error_file: "/tmp/eventio/council-app.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "eventio-faculty",
script: NPM,
args: "run start -- --port 4175",
interpreter: NODE,
cwd: "/vm-storage/projects/eventio-3.0/frontend/faculty",
instances: 1,
exec_mode: "fork",
autorestart: true,
watch: false,
max_memory_restart: "512M",
env: {
NODE_ENV: "production",
PORT: "4175",
NEXT_PUBLIC_SERVER_ADDRESS: "https://eventioapi.swdc.somaiya.edu",
},
out_file: "/tmp/eventio/faculty.log",
error_file: "/tmp/eventio/faculty.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
],
};