-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
36 lines (35 loc) · 823 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
36 lines (35 loc) · 823 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
module.exports = {
apps: [{
name: 'hiso-api-adapter',
script: 'server.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development',
PORT: 3002
},
env_production: {
NODE_ENV: 'production',
PORT: 3002
},
log_file: './logs/combined.log',
out_file: './logs/out.log',
error_file: './logs/error.log',
log_type: 'json',
merge_logs: true,
max_restarts: 10,
min_uptime: '10s'
}],
deploy: {
production: {
user: 'node',
host: 'your-server.com',
ref: 'origin/main',
repo: 'git@github.com:your-repo/hiso-api-adapter.git',
path: '/var/www/hiso-api-adapter',
'post-deploy': 'npm install && pm2 reload ecosystem.config.js --env production'
}
}
};