-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
41 lines (41 loc) · 992 Bytes
/
ecosystem.config.js
File metadata and controls
41 lines (41 loc) · 992 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
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
apps: [
{
name: 'control-api',
script: 'src/index.ts',
cwd: 'packages/control-api',
interpreter: 'bun',
max_memory_restart: '512M',
env: { NODE_ENV: 'production', PORT: 4000 },
},
{
name: 'build-worker',
script: 'src/index.ts',
cwd: 'packages/build-worker',
interpreter: 'bun',
max_memory_restart: '256M',
env: { NODE_ENV: 'production', PORT: 4001 },
},
{
name: 'deploy-engine',
script: 'src/index.ts',
cwd: 'packages/deploy-engine',
interpreter: 'bun',
max_memory_restart: '256M',
env: {
NODE_ENV: 'production',
PLATFORM_ENV: 'production',
PORT: 4002,
NGINX_SITES_DIR: '/etc/nginx/platform-sites',
},
},
{
name: 'ui',
script: 'bun',
args: 'run start',
cwd: 'packages/ui',
max_memory_restart: '512M',
env: { NODE_ENV: 'production', PORT: 3000 },
},
],
};