-
Notifications
You must be signed in to change notification settings - Fork 121
/
ecosystem-sqlite.json
41 lines (41 loc) · 1.02 KB
/
ecosystem-sqlite.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
{
"apps": [
{
"name": "sqlite",
"script": "sqlite.js",
"max_restarts": 999,
"max_memory_restart": "20G",
"wait_ready": true,
"exec_mode": "cluster",
"instances": "4",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
},
{
"name": "sqlite-bree",
"script": "sqlite-bree.js",
"max_restarts": 999,
"max_memory_restart": "20G",
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
}
}
],
"deploy": {
"production": {
"user": "deploy",
"host": ["143.244.179.101"],
"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-sqlite.json --env production --update-env"
}
}
}