forked from sheershoff/keymetrics-phabricator-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem-example.json
60 lines (60 loc) · 2.48 KB
/
ecosystem-example.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
{
"apps" : [
{
"name" : "keymetrics-phabricator-gateway",
"script" : "bin/www",
"max_memory_restart" : "1024M",
"exec_mode" : "cluster",
"instances" : 2,
"env": {
"NODE_ENV": "production",
"KPG_CONDUIT_ROOT": "http://your-phabricator.domain.net/api/",
"KPG_CONDUIT_TOKEN": "api-XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"KPG_PROJECT": "PHID-PROJ-YYYYYYYYYYYYYYYYYYYY,PHID-PROJ-ZZZZZZZZZZZZZZZZZZZZ",
"KPG_TOKEN_VALUE": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"KPG_PATH": "someurl",
"KPG_PORT": 9797,
"KPG_HOST": "localhost",
"KPG_TOKEN_FIELD": "tokentoken"
}
},
{
"name" : "keymetrics-phabricator-gateway-test",
"script" : "bin/www",
"max_memory_restart" : "1024M",
"exec_mode" : "cluster",
"instances" : 2,
"env": {
"NODE_ENV": "test",
"KPG_CONDUIT_ROOT": "http://your-phabricator.domain.net/api/",
"KPG_CONDUIT_TOKEN": "api-XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"KPG_PROJECT": "PHID-PROJ-YYYYYYYYYYYYYYYYYYYY,PHID-PROJ-ZZZZZZZZZZZZZZZZZZZZ",
"KPG_TOKEN_VALUE": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"KPG_PATH": "someurl",
"KPG_PORT": 9797,
"KPG_HOST": "localhost",
"KPG_TOKEN_FIELD": "tokentoken"
}
}
],
"deploy" : {
"production" : {
"user" : "pm2user",
"host" : "someserver.net",
"ref" : "origin/master",
"repo" : "https://github.com/sheershoff/keymetrics-phabricator-gateway.git",
"path" : "/var/nodejs/www/apps/keymetrics-phabricator-gateway",
"pre-deploy-local": "scp ecosystem.json [email protected]:/var/nodejs/www/apps/keymetrics-phabricator-gateway",
"post-deploy" : "export NODE_ENV=production && git checkout master; npm install ; pm2 startOrGracefulReload ../ecosystem.json --env production --only keymetrics-phabricator-gateway"
},
"test" : {
"user" : "pm2user",
"host" : "someserver.net",
"ref" : "origin/test",
"repo" : "https://github.com/sheershoff/keymetrics-phabricator-gateway.git",
"path" : "/var/nodejs/www/apps/keymetrics-phabricator-gateway-test",
"pre-deploy-local": "scp ecosystem.json [email protected]:/var/nodejs/www/apps/keymetrics-phabricator-gateway-test",
"post-deploy" : "export NODE_ENV=test && git checkout -B test --track origin/test; npm install ; pm2 startOrGracefulReload ../ecosystem.json --env test --only keymetrics-phabricator-gateway-test"
}
}
}