-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
43 lines (41 loc) · 1.11 KB
/
Copy pathecosystem.config.js
File metadata and controls
43 lines (41 loc) · 1.11 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
module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps : [
// First application
{
name : 'poly_dueros',
script : 'app.js'
},
],
/**
* Deployment section
* http://pm2.keymetrics.io/docs/usage/deployment/
*/
deploy : {
pro : {
user : 'live',
host : '123.57.139.200',
ref : 'origin/master',
repo : 'git@git.ourjujia.com:zhangxuesong/duer-node.git',
path : '/home/live/poly_dueros',
'post-deploy' : 'git pull origin master && cnpm install && pm2 startOrRestart ecosystem.config.js',
env : {
NODE_ENV: 'pro'
}
},
dev : {
user : 'live',
host : '60.205.151.71',
ref : 'origin/master_remote',
repo : 'git@git.ourjujia.com:zhangxuesong/duer-node.git',
path : '/home/live/dueros-wangyun',
'post-deploy' : 'git pull origin master_remote && npm install --registry=https://registry.npm.taobao.org && pm2 startOrRestart ecosystem.config.js --watch',
env : {
NODE_ENV: 'dev'
}
}
}
};