-
Notifications
You must be signed in to change notification settings - Fork 6
/
ecosystem.config.json
63 lines (62 loc) · 1.86 KB
/
ecosystem.config.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"apps": [
{
"name": "ti-broish-api",
"append_env_to_name": true,
"script": "./node_modules/.bin/nest",
"args": "start",
"_": "// Options reference: https://pm2.keymetrics.io/docs/usage/application-declaration/",
"watch": false,
"max_memory_restart": "2G",
"env": {
"NODE_ENV": "production"
},
"env_production": {
"NODE_ENV": "production"
},
"env_prod-test": {
"NODE_ENV": "production"
},
"env_staging": {
"NODE_ENV": "production"
},
"instances": 1,
"exec_mode": "cluster",
"merge_logs": true,
"error_file": "./var/log/err.log",
"out_file": "./var/log/out.log",
"log_file": "./var/log/combined.log",
"log_rotate_interval": "1d",
"log_max_size": "100M"
}
],
"deploy": {
"production": {
"user": "deploy",
"host": ["ti-broish-api"],
"ref": "origin/main",
"repo": "https://github.com/ti-broish/api.git",
"path": "/var/www/ti-broish-20230402",
"post-setup": "ls -la",
"post-deploy": "npm run postdeploy -- production --env production --cwd /var/www/ti-broish-20230402"
},
"prod-test": {
"user": "deploy",
"host": ["ti-broish-api"],
"ref": "origin/main",
"repo": "https://github.com/ti-broish/api.git",
"path": "/var/www/ti-broish-prod-test",
"post-setup": "ls -la",
"post-deploy": "npm run postdeploy -- prod-test --env prod-test --cwd /var/www/ti-broish-prod-test"
},
"staging": {
"user": "deploy",
"host": ["ti-broish-api"],
"ref": "origin/main",
"repo": "https://github.com/ti-broish/api.git",
"path": "/var/www/ti-broish-api-staging",
"post-setup": "ls -la",
"post-deploy": "npm run postdeploy -- staging --env staging --cwd /var/www/ti-broish-api-staging"
}
}
}