-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathecosystem.config.js
More file actions
73 lines (72 loc) · 1.73 KB
/
ecosystem.config.js
File metadata and controls
73 lines (72 loc) · 1.73 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
/**
* PM2 Ecosystem Config — Agent Process Management
*
* Usage:
* pm2 start ecosystem.config.js
* pm2 status
* pm2 logs
* pm2 restart all
* pm2 stop all
*
* Auto-restart on crash + boot:
* pm2 save
* pm2 startup
*/
module.exports = {
apps: [
{
name: 'sam',
script: './scripts/agent-loop.sh',
args: 'sam',
interpreter: '/bin/bash',
cwd: '/Users/sonpiaz/evox',
autorestart: true,
watch: false,
max_restarts: 10,
restart_delay: 5000, // 5 seconds between restarts
env: {
AGENT: 'sam',
CONVEX_URL: 'https://gregarious-elk-556.convex.site',
},
error_file: './logs/sam-error.log',
out_file: './logs/sam-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
},
{
name: 'leo',
script: './scripts/agent-loop.sh',
args: 'leo',
interpreter: '/bin/bash',
cwd: '/Users/sonpiaz/evox',
autorestart: true,
watch: false,
max_restarts: 10,
restart_delay: 5000,
env: {
AGENT: 'leo',
CONVEX_URL: 'https://gregarious-elk-556.convex.site',
},
error_file: './logs/leo-error.log',
out_file: './logs/leo-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
},
{
name: 'max',
script: './scripts/agent-loop.sh',
args: 'max',
interpreter: '/bin/bash',
cwd: '/Users/sonpiaz/evox',
autorestart: true,
watch: false,
max_restarts: 10,
restart_delay: 5000,
env: {
AGENT: 'max',
CONVEX_URL: 'https://gregarious-elk-556.convex.site',
},
error_file: './logs/max-error.log',
out_file: './logs/max-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
},
],
};