-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js
47 lines (46 loc) · 1.12 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
module.exports = {
apps: [
{
name: 'rainbow',
script: 'server.js',
env_production: {
NODE_ENV: 'production',
PORT: 3001,
},
},
{
name: 'rainbow-dev',
script: 'server.js',
env: {
NODE_ENV: 'development',
PORT: 3002,
},
},
],
deploy: {
production: {
user: 'cuijianjun',
host: '123.56.24.253',
ref: 'origin/master',
repo: 'git@github.com:cuijianjun/rainbow.git',
path: '/work/rainbow/production',
'pre-deploy': 'git fetch',
'post-deploy': 'npm install && npm run init-database && pm2 startOrRestart ecosystem.config.js --only rainbow',
env: {
NODE_ENV: 'production',
},
},
dev: {
user: 'cuijianjun',
host: '123.56.24.253',
ref: 'origin/dev',
repo: 'git@github.com:cuijianjun/rainbow.git',
path: '/work/rainbow/development',
'pre-deploy': 'git fetch',
'post-deploy': 'npm install && npm run init-database && pm2 startOrRestart ecosystem.config.js --only rainbow-dev',
env: {
NODE_ENV: 'dev',
},
},
},
};