-
Notifications
You must be signed in to change notification settings - Fork 5
/
ecosystem.json
39 lines (38 loc) · 1.15 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
{
"apps" : [{
"name" : "Instant Skeleton",
"script" : "./build/server/main.js",
"instances" : 4,
"node_args" : "--harmony",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"max_memory_restart": "250M",
"env": {
"NODE_ENV": "production",
"AWESOME_SERVICE_API_TOKEN": "xxx"
},
"watch" : false,
"error_file" : "./logs/err.log",
"out_file" : "./logs/out.log",
"pid_file" : "./logs/app.pid",
"exec_mode" : "fork_mode",
"port" : 8080
}],
"deploy" : {
"development" : {
"user" : "YOUR-USER-NAME",
"host" : "YOUR-SERVER-ADDRESS",
"ref" : "origin/develop",
"repo" : "[email protected]:DimensionSoftware/instant-skeleton.git",
"path" : "/staging/instant-skeleton",
"post-deploy" : "npm i && npm start"
},
"production" : {
"user" : "YOUR-USER-NAME",
"host" : "YOUR-SERVER-ADDRESS",
"ref" : "origin/master",
"repo" : "[email protected]:DimensionSoftware/instant-skeleton.git",
"path" : "/opt/instant-skeleton",
"post-deploy" : "NODE_ENV=production npm i && npm start"
}
}
}