-
Notifications
You must be signed in to change notification settings - Fork 5
/
ecosystem.json
59 lines (58 loc) · 1.61 KB
/
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
{
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
"apps" : [
{
"name" : "prod-appetini-front",
"script" : "bin/server.js",
"env": {
"COMMON_VARIABLE" : "true",
"NODE_PATH" : "./src",
"APIHOST" : "localhost"
},
"env_production" : {
"NODE_ENV" : "production",
"PORT" : 3011,
"APIPORT" : 3001
}
},
{
"name" : "appetini-front",
"script" : "bin/server.js",
"env": {
"COMMON_VARIABLE" : "true",
"NODE_PATH" : "./src",
"APIHOST" : "localhost"
},
"env_staging" : {
"NODE_ENV" : "production",
"PORT" : 3010,
"APIPORT" : 3000
}
}
],
/**
* Deployment section
* http://pm2.keymetrics.io/docs/usage/deployment/
*/
"deploy" : {
"staging" : {
"user" : "site",
"host" : "46.101.100.147",
"ref" : "origin/master",
"repo" : "[email protected]:sars/appetini-front.git",
"path" : "/home/site/www/site-front",
"post-deploy" : "npm install ; pm2 startOrRestart ecosystem.json --env staging --only appetini-front"
},
"production" : {
"user" : "site",
"host" : "46.101.100.147",
"ref" : "origin/master",
"repo" : "[email protected]:sars/appetini-front.git",
"path" : "/home/site/www/prod-site-front",
"post-deploy" : "npm install ; pm2 startOrRestart ecosystem.json --env production --only prod-appetini-front"
}
}
}