-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
53 lines (51 loc) · 1.36 KB
/
ecosystem.config.cjs
File metadata and controls
53 lines (51 loc) · 1.36 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
// =============================================================================
// Port Configuration - All ports defined here as single source of truth
// =============================================================================
const PORTS = {
API: 6374, // Express API server
UI: 6373, // Vite dev server (client)
CDP: 9920 // Chrome DevTools Protocol port for browser automation
};
module.exports = {
PORTS, // Export for other configs to reference
apps: [
{
name: 'sparsetree-server',
script: 'node_modules/.bin/tsx',
args: 'src/index.ts',
cwd: `${__dirname}/server`,
interpreter: 'node',
time: true,
log_date_format: 'YYYY-MM-DD HH:mm:ss',
max_memory_restart: '500M',
env: {
NODE_ENV: 'development',
PORT: PORTS.API,
HOST: '0.0.0.0',
CDP_PORT: PORTS.CDP
},
watch: false
},
{
name: 'sparsetree-ui',
script: 'node_modules/.bin/vite',
cwd: `${__dirname}/client`,
args: `--host 0.0.0.0 --port ${PORTS.UI}`,
env: {
NODE_ENV: 'development',
VITE_PORT: PORTS.UI
},
watch: false
},
{
name: 'sparsetree-browser',
script: '.browser/start.sh',
cwd: __dirname,
interpreter: 'bash',
autorestart: false,
env: {
CDP_PORT: PORTS.CDP
}
}
]
};