-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathecosystem.config.js
More file actions
36 lines (36 loc) · 1.08 KB
/
ecosystem.config.js
File metadata and controls
36 lines (36 loc) · 1.08 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
module.exports = {
apps: [
{
name: 'infosphere',
script: 'backend/app.js',
instances: 1,
exec_mode: 'cluster',
autorestart: true,
watch: false,
max_memory_restart: '500M',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
},
log_date_format: 'YYYY-MM-DD HH:mm:ss',
error_file: 'logs/error.log',
out_file: 'logs/output.log',
merge_logs: true
}
],
deploy: {
production: {
user: 'ubuntu',
host: 'infosphere.devlive.top',
ref: 'origin/dev',
repo: 'https://github.com/devlive-community/infosphere.git',
path: '/var/www/infosphere',
'pre-deploy-local': '',
'post-deploy': 'pnpm install && pnpm run build && pm2 reload ecosystem.config.js --env production',
'pre-setup': '',
'ssh_options': ['ForwardAgent=yes']
}
}
};