-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpm2-config.json
52 lines (52 loc) · 1.48 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
{
"apps": [
{
"name": "twitelo-api-beta",
"script": "./app.js",
"watch": false,
"restart_delay": 1000,
"ignore_watch": ["node_modules", "logs/*", "public/*", "*.log", ".git"],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"env": {
"NODE_ENV": "beta"
}
},
{
"name": "twitelo-api",
"script": "./app.js",
"watch": false,
"restart_delay": 1000,
"ignore_watch": ["node_modules", "logs/*", "public/*", "*.log", ".git"],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"env": {
"NODE_ENV": "prod"
}
}
],
"deploy": {
"beta": {
"user": "root",
"host": "51.15.131.156",
"key": "~/.ssh/ssh_ifo_vps",
"ref": "origin/beta",
"repo": "[email protected]:iFonny/TwiteloAPI.git",
"path": "/root/www/TwiteloAPI/beta/",
"post-deploy": "cp /root/configs/TwiteloAPI/secret.json ./configs/; npm install && pm2 startOrRestart pm2-config.json --only twitelo-api-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/TwiteloAPI.git",
"path": "/root/www/TwiteloAPI/production/",
"post-deploy": "cp /root/configs/TwiteloAPI/secret.json ./configs/; npm install && pm2 startOrRestart pm2-config.json --only twitelo-api",
"env": {
"NODE_ENV": "prod"
}
}
}
}