-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
49 lines (44 loc) · 1.14 KB
/
ecosystem.config.cjs
File metadata and controls
49 lines (44 loc) · 1.14 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
module.exports = {
apps: [
{
name: 'boundless-backend',
script: './dist/server.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
PORT: 8880
},
env_production: {
NODE_ENV: 'production',
PORT: 8880
},
// Logging
log_file: './logs/combined.log',
out_file: './logs/out.log',
error_file: './logs/error.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
// Auto restart settings
autorestart: true,
watch: false,
max_memory_restart: '1G',
// Advanced settings
min_uptime: '10s',
max_restarts: 10,
// Health monitoring
health_check_grace_period: 3000,
// Environment variables
env_file: '.env'
}
],
deploy: {
production: {
user: 'bound-api',
host: '46.202.195.31',
ref: 'origin/main',
repo: 'git@github.com:0xdevcollins/boundless-backend.git',
path: '/home/bound-api/htdocs/api.boundlessfi.xyz',
'post-deploy': 'npm install --production && pm2 reload ecosystem.config.cjs --env production'
}
}
};