-
Notifications
You must be signed in to change notification settings - Fork 1
/
ecosystem.config.js
51 lines (50 loc) · 1.1 KB
/
ecosystem.config.js
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
50
51
module.exports = {
apps : [
{
name : 'serva',
script : 'npm',
args : 'start',
cwd : '/home/web/serva',
env: {
PORT: 3000,
NUXT_PORT: 3000,
NODE_ENV: 'production'
},
watch: false,
cron_restart: '0 5 * * *',
max_memory_restart: '850M'
},
{
name : 'servb',
script : 'npm',
args : 'start',
cwd : '/home/web/servb',
env: {
PORT: 4000,
NUXT_PORT: 4000,
NODE_ENV: 'production'
},
watch: false,
cron_restart: '0 5 * * *',
max_memory_restart: '850M'
},
],
deploy : {
serva : {
user : 'web',
host : 'localhost',
ref : 'origin/master',
repo : '',
path : '/home/web/serva',
'post-deploy' : 'npm install && npm run build && pm2 startOrRestart'
},
servb : {
user : 'web',
host : 'localhost',
ref : 'origin/master',
repo : '',
path : '/home/web/servb-b',
'post-deploy' : 'npm install && npm run build && pm2 startOrRestart'
}
}
}