-
Notifications
You must be signed in to change notification settings - Fork 118
/
ecosystem-caldav.json
42 lines (42 loc) · 1.03 KB
/
ecosystem-caldav.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
{
"apps": [
{
"name": "caldav",
"script": "caldav.js",
"max_restarts": 999,
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"env_production": {
"NODE_ENV": "production",
"HTTP_PORT": 443,
"HTTP_PROTOCOL": "https"
}
},
{
"name": "proxy",
"script": "proxy.js",
"max_restarts": 999,
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production",
"PROXY_PORT": 80
}
}
],
"deploy": {
"production": {
"user": "deploy",
"host": ["64.23.142.64"],
"ref": "origin/master",
"repo": "git@github.com:forwardemail/forwardemail.net.git",
"path": "/var/www/production",
"pre-deploy": "git reset --hard",
"post-deploy": "pnpm install && NODE_ENV=production npm start build && pm2 startOrGracefulReload ecosystem-caldav.json --env production --update-env"
}
}
}