-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathecosystem-sqlite.json
More file actions
51 lines (51 loc) · 1.35 KB
/
ecosystem-sqlite.json
File metadata and controls
51 lines (51 loc) · 1.35 KB
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
{
"apps": [
{
"name": "sqlite",
"script": "sqlite.js",
"max_restarts": 999,
"max_memory_restart": "80G",
"wait_ready": true,
"exec_mode": "cluster",
"instances": "4",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
},
"error_file": "/var/log/pm2/sqlite-error.log",
"out_file": "/var/log/pm2/sqlite-out.log",
"combine_logs": true,
"merge_logs": true
},
{
"name": "sqlite-bree",
"script": "sqlite-bree.js",
"max_restarts": 999,
"max_memory_restart": "80G",
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
},
"error_file": "/var/log/pm2/sqlite-bree-error.log",
"out_file": "/var/log/pm2/sqlite-bree-out.log",
"combine_logs": true,
"merge_logs": true
}
],
"deploy": {
"production": {
"user": "deploy",
"host": [
"121.127.44.61"
],
"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-sqlite.json --env production --update-env"
}
}
}