-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpm2-config.json
70 lines (70 loc) · 1.85 KB
/
pm2-config.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"apps": [
{
"name": "twitelo-app-beta",
"script": "./server/app.js",
"watch": false,
"restart_delay": 1000,
"ignore_watch": [
".nuxt",
"node_modules",
"logs/*",
"public/*",
"static/*",
"*.log",
".git"
],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"env": {
"NODE_ENV": "beta"
}
},
{
"name": "twitelo-app",
"script": "./server/app.js",
"watch": false,
"restart_delay": 1000,
"ignore_watch": [
".nuxt",
"node_modules",
"logs/*",
"public/*",
"static/*",
"*.log",
".git"
],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"env": {
"NODE_ENV": "production"
}
}
],
"deploy": {
"beta": {
"user": "root",
"host": "51.15.131.156",
"key": "~/.ssh/ssh_ifo_vps",
"ref": "origin/beta",
"repo": "[email protected]:iFonny/TwiteloApp.git",
"path": "/root/www/TwiteloApp/beta/",
"pre-setup": "npm i -g yarn; npm i -g vue-cli; yarn global add [email protected]",
"post-deploy": "cp /root/configs/TwiteloApp/secret.json ./config/; npm install; nuxt build; pm2 startOrRestart pm2-config.json --only twitelo-app-beta",
"env": {
"NODE_ENV": "beta"
}
},
"production": {
"user": "root",
"host": "51.15.131.156",
"key": "~/.ssh/ssh_ifo_vps",
"ref": "origin/master",
"repo": "[email protected]:iFonny/TwiteloApp.git",
"path": "/root/www/TwiteloApp/production/",
"pre-setup": "npm i -g yarn; npm i -g vue-cli; yarn global add [email protected]",
"post-deploy": "cp /root/configs/TwiteloApp/secret.json ./config/; npm install; nuxt build; pm2 startOrRestart pm2-config.json --only twitelo-app",
"env": {
"NODE_ENV": "production"
}
}
}
}