-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.json
57 lines (56 loc) · 1.67 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
/**
* This file defines the configuration for managing the sitecues proxy as a
* service with PM2.
*/
{
/**
* Application settings.
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
"apps" : [
// The Try It demo service. Useful for sharing sitecues-enabled links.
{
"name" : "sitecues-try-it",
"script" : "bin/sitecues-try-it.js",
"exec_mode" : "cluster",
"instances" : 2,
"max_memory_restart" : "120M",
"env" : {
"SITE_ID" : "s-98595d91"
},
"env_dev" : {
"HOSTNAME" : "proxy.dev.sitecues.com",
"PORT" : "8001"
}
},
{
"name" : "sitecues-try-it-links",
"script" : "bin/sitecues-try-it.js",
"exec_mode" : "cluster",
"instances" : 2,
"max_memory_restart" : "120M",
"env" : {
"SITE_ID" : "s-98595d91",
"PROXY_LINKS" : true
},
"env_dev" : {
"HOSTNAME" : "proxy.dev.sitecues.com",
"PORT" : "7000"
}
}
],
/**
* Deployment settings.
* http://pm2.keymetrics.io/docs/usage/deployment/
*/
"deploy" : {
"dev" : {
"user" : "proxy",
"host" : "proxy.dev.sitecues.com",
"repo" : "git@bitbucket.org:ai_squared/sitecues-proxy.git",
"ref" : "origin/master",
"path" : "/srv/sitecues-try-it",
"post-deploy" : "npm install && pm2 startOrReload ecosystem.json --env dev"
}
}
}