forked from bailicangdu/node-elm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
33 lines (33 loc) · 784 Bytes
/
ecosystem.config.js
File metadata and controls
33 lines (33 loc) · 784 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
module.exports = {
apps : [{
name: 'node-elm',
script: 'index.js',
instances: 1 ,
autorestart: true,
watch: false,
max_memory_restart: '1G',
output: 'logs/out.log',
error: 'logs/error.log',
log: 'logs/combined.outerr.log',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production',
HOST: '0.0.0.0',
PORT: 8001,
}
}],
deploy: {
production: {
user: 'root',
host: ['139.224.234.213'],
port: '22',
ref : 'origin/master',
repo: 'git@github.com:bailicangdu/node-elm.git',
path: '/root/mygit/node-elm',
'ssh_options': 'StrictHostKeyChecking=no',
'post-deploy': 'npm install && pm2 reload ecosystem.config.js --env production',
}
}
};