-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample.ecosystem.json
78 lines (68 loc) · 2.24 KB
/
example.ecosystem.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"apps": [
{
"name": "FILE-SIMULATOR-" + process.env.NODE_ENV,
"script": "server/dist/main.js",
"env": {
"NODE_ENV": "dev"
},
"env_dev": {
"NODE_ENV": "dev"
},
"env_test": {
"NODE_ENV": "test"
},
"env_production": {
"NODE_ENV": "production"
},
"out_file": "/dev/null"
}
],
"deploy": {
"dev": {
"user": "PM2_USER",
"host": "HOST_IP_ADDRESS",
"ref": "origin/master",
"repo": "[email protected]:user/releases-url.git",
"path": "/path/to/repo",
"pre-setup": "",
"post-setup": "",
"pre-deploy-local": "",
"post-deploy": "npm ci; export NODE_ENV=dev; pm2 reset FILE-SIMULATOR-dev; pm2 startOrRestart ecosystem.json --env dev; pm2 save",
"env": {
"NODE_ENV": "dev",
"MONGO_URL": ""
}
},
"test": {
"user": "PM2_USER",
"host": "HOST_IP_ADDRESS",
"ref": "origin/develop",
"repo": "[email protected]:user/releases-url.git",
"path": "/path/to/repo",
"pre-setup": "",
"post-setup": "",
"pre-deploy-local": "",
"post-deploy": "npm install; export NODE_ENV=test; pm2 reset FILE-SIMULATOR-test; pm2 startOrRestart ecosystem.json --env test; pm2 save",
"env": {
"NODE_ENV": "test",
"MONGO_URL": ""
}
},
"production": {
"user": "PM2_USER",
"host": "HOST_IP_ADDRESS",
"ref": "origin/master",
"repo": "[email protected]:user/releases-url.git",
"path": "/path/to/repo",
"pre-setup": "",
"post-setup": "",
"pre-deploy-local": "",
"post-deploy": "npm ci; export NODE_ENV=production; pm2 reset FILE-SIMULATOR-production; pm2 startOrRestart ecosystem.json --env production; pm2 save",
"env": {
"NODE_ENV": "production",
"MONGO_URL": ""
}
}
}
}