-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.json
100 lines (100 loc) · 2.5 KB
/
app.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"apps": [
{
"name": "redis",
"interpreter": "/usr/local/bin/redis-server",
"script": "redis.conf",
"watch": false,
"cwd": "~/.odoas/",
"restart_delay": 2000,
"env": {},
"env_test": {},
"env_staging": {},
"env_production": {},
"kill_timeout": 2000,
"listen_timeout": 2000,
"wait_ready": false,
"out_file": "~/.odoas/logs/odows-redis.log",
"error_file": "~/.odoas/logs/odows-redis.error.log"
},
{
"name": "ws-server",
"script": "dist/apps/server/index.js",
"watch": false,
"exec_mode": "cluster",
"instance": "max",
"cwd": "~/.odoas/",
"restart_delay": 5000,
"env": {
"NODE_ENV": "development",
"PORT": 8090
},
"env_test": {
"NODE_ENV": "production",
"PORT": 8090
},
"env_staging": {
"NODE_ENV": "production",
"PORT": 8090
},
"env_production": {
"NODE_ENV": "production",
"PORT": 8090
},
"kill_timeout": 6000,
"listen_timeout": 6000,
"wait_ready": true,
"out_file": "~/.odoas/logs/ws-server.log",
"error_file": "~/.odoas/logs/ws-server.error.log"
},
{
"name": "controls",
"script": "dist/apps/controls/index.js",
"watch": false,
"cwd": "~/.odoas",
"restart_delay": 5000,
"env": {
"NODE_ENV": "development"
},
"env_test": {
"NODE_ENV": "production"
},
"env_staging": {
"NODE_ENV": "production"
},
"env_production": {
"NODE_ENV": "production"
},
"kill_timeout": 6000,
"listen_timeout": 6000,
"out_file": "~/.odoas/logs/controls.log",
"error_file": "~/.odoas/logs/controls.error.log"
}
],
"deploy": {
"test": {
"user": "root",
"host": [""],
"ref": "origin/test",
"repo": "[email protected]:odo-network/odoas.git",
"path": "~/.odoas",
"post-deploy": "sh internals/scripts/post-deploy.sh test"
},
"staging": {
"user": "root",
"host": [""],
"ref": "origin/staging",
"repo": "[email protected]:odo-network/odoas.git",
"path": "~/.odoas",
"post-deploy": "sh internals/scripts/post-deploy.sh staging"
},
"production": {
"user": "root",
"host": [""],
"ref": "origin/master",
"repo": "[email protected]:odo-network/odoas.git",
"path": "~/.odoas",
"post-deploy": "sh internals/scripts/post-deploy.sh prod"
}
}
}