-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
executable file
·47 lines (46 loc) · 1.16 KB
/
ecosystem.config.cjs
File metadata and controls
executable file
·47 lines (46 loc) · 1.16 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
/**
* ecosystem.config.cjs
*
* PM2 Configuration for AI Runlevel
* Purpose: Ensures the runlevel orchestrator starts on boot, manages logs, and restarts on failure.
* This acts as the "systemd unit" equivalent for the user space.
*/
module.exports = {
apps: [
{
name: 'ai-runlevel',
script: './ai-runlevel.mjs',
cwd: '/home/loop/.repository/wsl-systemd',
interpreter: 'node',
autorestart: true,
watch: false,
max_memory_restart: '200M',
out_file: './logs/runlevel.out.log',
error_file: './logs/runlevel.err.log',
combine_logs: true,
time: true,
env: {
NODE_ENV: 'production',
PATH: process.env.PATH
}
},
{
name: 'webtracon-server',
script: './server/server.mjs',
cwd: '/home/loop/.repository/wsl-systemd',
interpreter: 'node',
autorestart: true,
watch: false,
max_memory_restart: '300M',
out_file: './logs/server.out.log',
error_file: './logs/server.err.log',
combine_logs: true,
time: true,
env: {
NODE_ENV: 'production',
PORT: 3000,
PATH: process.env.PATH
}
}
]
};