-
Notifications
You must be signed in to change notification settings - Fork 121
/
ecosystem-imap.json
46 lines (46 loc) · 1.13 KB
/
ecosystem-imap.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
{
"apps": [
{
"name": "imap-993",
"script": "imap.js",
"max_restarts": 999,
"max_memory_restart": "15G",
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"env_development": {
"IMAP_PORT": 2113
},
"env_production": {
"NODE_ENV": "production",
"IMAP_PORT": 993
}
},
{
"name": "imap-2993",
"script": "imap.js",
"max_restarts": 999,
"max_memory_restart": "15G",
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production",
"IMAP_PORT": 2993
}
}
],
"deploy": {
"production": {
"user": "deploy",
"host": ["64.23.247.113"],
"ref": "origin/master",
"repo": "[email protected]: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-imap.json --env production --update-env"
}
}
}