-
Notifications
You must be signed in to change notification settings - Fork 608
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
30 lines (28 loc) · 811 Bytes
/
ecosystem.config.cjs
File metadata and controls
30 lines (28 loc) · 811 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
30
const env = {
UI_MODE: process.env.UI_MODE ?? "true",
UI_PORT: process.env.UI_PORT ?? "4310",
READONLY_MODE: process.env.READONLY_MODE ?? "true",
LOCAL_TOKEN_AUTH_REQUIRED: process.env.LOCAL_TOKEN_AUTH_REQUIRED ?? "true",
MONITOR_CONTINUOUS: process.env.MONITOR_CONTINUOUS ?? "true",
GATEWAY_URL: process.env.GATEWAY_URL ?? "ws://127.0.0.1:18789",
};
if (process.env.LOCAL_API_TOKEN) {
env.LOCAL_API_TOKEN = process.env.LOCAL_API_TOKEN;
}
module.exports = {
apps: [
{
name: "pandas-control-center",
cwd: __dirname,
script: "node",
args: "--import tsx src/index.ts",
env,
autorestart: true,
max_restarts: 10,
restart_delay: 2000,
out_file: "runtime/pm2-out.log",
error_file: "runtime/pm2-error.log",
time: true
}
]
};