This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
deploy-config-example.js
135 lines (125 loc) · 3.61 KB
/
deploy-config-example.js
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
var secrets = require('./secrets.js');
var s3Credential = {
accessKeyId: secrets.s3.accessKeyId,
secretAccessKey: secrets.s3.secretAccessKey,
params: {
Bucket: 'productboard-assets'
}
};
var config = {
redis: {
development: {
port: 6379,
host: 'localhost',
db: 1,
options: { },
indexPath: 'dist/index.html',
indexKey: 'app:%s',
metaKey: 'meta:%s',
mainIndexKey: 'app:current',
mainRevKey: 'app:current-revision',
revTimestampKey: 'app-timestamp:%s',
lastMajorTimestampKey: 'app:last-major-timestamp',
},
staging: {
port: 9999,
db: 0,
host: 'pub-redis-9999.us-east-1-1.2.ec2.garantiadata.com',
options: { auth_pass: secrets.redis.staging.auth_pass },
indexPath: 'dist/index.html',
indexKey: 'app:%s',
metaKey: 'meta:%s',
mainIndexKey: 'app:current',
mainRevKey: 'app:current-revision',
revTimestampKey: 'app-timestamp:%s',
lastMajorTimestampKey: 'app:last-major-timestamp',
},
me: {
port: 8888,
db: 0,
host: 'pub-redis-8888.us-east-1-3.3.ec2.garantiadata.com',
options: { auth_pass: secrets.redis.me.auth_pass },
indexPath: 'dist/index.html',
indexKey: 'app:%s',
metaKey: 'meta:%s',
mainIndexKey: 'app:current',
mainRevKey: 'app:current-revision',
revTimestampKey: 'app-timestamp:%s',
lastMajorTimestampKey: 'app:last-major-timestamp',
},
production: {
port: 7777,
db: 0,
host: 'pub-redis-7777.us-east-1-1.2.ec2.garantiadata.com',
options: { auth_pass: secrets.redis.production.auth_pass },
indexPath: 'dist/index.html',
indexKey: 'app:%s',
metaKey: 'meta:%s',
mainIndexKey: 'app:current',
mainRevKey: 'app:current-revision',
revTimestampKey: 'app-timestamp:%s',
lastMajorTimestampKey: 'app:last-major-timestamp',
}
},
s3: {
// Let's stick with single S3 bucket for now
development: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
staging: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
me: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
production: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
}
},
rollbar: {
development: {
minifiedUrl: 'http://cdn.example.com/assets/main-%s.js',
sourceMapPath: 'dist/assets/main-%s.map',
accessToken: secrets.rollbar.development.accessToken,
abbrev: 7,
},
staging: {
minifiedUrl: 'http://cdn.example.com/assets/main-%s.js',
sourceMapPath: 'dist/assets/main-%s.map',
accessToken: secrets.rollbar.staging.accessToken,
abbrev: 7,
},
production: {
minifiedUrl: 'http://cdn.example.com/assets/main-%s.js',
sourceMapPath: 'dist/assets/main-%s.map',
accessToken: secrets.rollbar.production.accessToken,
abbrev: 7,
}
},
slack: {
staging: {
url: 'https://staging.example.com',
notifyWebHook: 'https://hooks.slack.com/services/XXXXYYYY/ZZZZUUUUU/asdjLJFHLFJKHLDJKFHDdfdh',
},
production: {
url: 'https://www.example.com',
notifyWebHook: 'https://hooks.slack.com/services/ZZZZYYYY/ZZZZTTTTT/asdjLJFHLFJKHLDJKFHDdfdh',
},
},
git: {
staging: {
url: 'https://staging.example.com',
remote: 'origin',
abbrev: 7,
}
},
};
module.exports = config;