-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathecosystem-web.json
More file actions
51 lines (51 loc) · 1.29 KB
/
ecosystem-web.json
File metadata and controls
51 lines (51 loc) · 1.29 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": "web",
"script": "web.js",
"max_restarts": 999,
"max_memory_restart": "8G",
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"error_file": "/var/log/pm2/web-error.log",
"out_file": "/var/log/pm2/web-out.log",
"combine_logs": true,
"merge_logs": true,
"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,
"error_file": "/var/log/pm2/proxy-error.log",
"out_file": "/var/log/pm2/proxy-out.log",
"combine_logs": true,
"merge_logs": true,
"env_production": {
"NODE_ENV": "production",
"PROXY_PORT": 80
}
}
],
"deploy": {
"production": {
"user": "deploy",
"host": ["121.127.44.69"],
"ref": "origin/master",
"repo": "git@github.com:forwardemail/forwardemail.net.git",
"path": "/var/www/production",
"pre-deploy": "git reset --hard",
"post-deploy": "bash ./scripts/pm2-post-deploy.sh ecosystem-web.json production"
}
}
}