-
Notifications
You must be signed in to change notification settings - Fork 13
/
ecosystem.json
52 lines (49 loc) · 1.36 KB
/
ecosystem.json
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
52
{
"apps" : [
{
"name": "youpin-bot",
"script": "app.js",
"watch": true,
"ignore_watch": [
"[\\/\\\\]\\./",
".git",
"node_modules",
],
"env": {
"COMMON_VARIABLE": "true"
},
"env_production" : {
"PORT": "5000",
"NODE_ENV": "production"
},
"env_development": {
"PORT": "5100",
"NODE_ENV": "development"
}
},
],
"deploy" : {
"production" : {
"user": "root",
"host": ["128.199.87.142"],
"ref": "origin/master",
"repo": "[email protected]:youpin-city/youpin-bot.git",
"path": "/opt/youpin-bot.production",
"post-deploy" : "npm install && pm2 startOrRestart ecosystem.json --env production && cp /opt/youpin-credentials/bot-credentials/production.json config/production.json",
"env": {
"NODE_ENV": "production"
}
},
"development" : {
"user": "root",
"host": ["128.199.87.142"],
"ref": "origin/master",
"repo": "[email protected]:youpin-city/youpin-bot.git",
"path": "/opt/youpin-bot.development",
"post-deploy" : "npm install && pm2 startOrRestart ecosystem.development.json --env development && cp /opt/youpin-credentials/bot-credentials/development.json config/development.json",
"env": {
"NODE_ENV": "development"
}
}
}
}