@@ -72,7 +72,7 @@ The Redis host. If [url](#url) is defined, then this option is not needed.
72
72
73
73
The Redis port. If [ url] ( #url ) is defined, then this option is not needed.
74
74
75
- * Default:* ` 6379 `
75
+ * Default:* ` 6379 ` or ` context.tunnel.srcPort ` if present (set by [ ember-cli-deploy-ssh-tunnel ] [ 7 ] )
76
76
77
77
### database
78
78
@@ -227,18 +227,13 @@ Add set up your `deploy.js` similar to the following:
227
227
``` js
228
228
' redis' : {
229
229
host: " localhost" ,
230
- port: 49156
231
230
},
232
231
' ssh-tunnel' : {
233
232
username: " your-ssh-username" ,
234
233
host: " remote-redis-host"
235
- srcPort: 49156
236
234
}
237
235
```
238
236
239
- _ (NB: by default ` ssh-tunnel ` assigns a random port for srcPort, but we need that
240
- to be the same for our ` redis ` config, so I've just hardcoded it above)_
241
-
242
237
### What if my Redis server is only accessible * from* my remote server?
243
238
244
239
Sometimes you need to SSH into a server (a "bastion" server) and then run
@@ -250,12 +245,10 @@ your Redis host as the destination host, like so:
250
245
``` js
251
246
' redis' : {
252
247
host: " localhost" ,
253
- port: 49156
254
248
},
255
249
' ssh-tunnel' : {
256
250
username: " your-ssh-username" ,
257
251
host: " remote-redis-host"
258
- srcPort: 49156 ,
259
252
dstHost: " location-of-your-elasticache-node-or-remote-redis"
260
253
}
261
254
```
@@ -270,6 +263,10 @@ The following properties are expected to be present on the deployment `context`
270
263
- ` commandLineArgs.revisionKey ` (provided by [ ember-cli-deploy] [ 5 ] )
271
264
- ` deployEnvironment ` (provided by [ ember-cli-deploy] [ 5 ] )
272
265
266
+ The following properties are used if present on the deployment ` context ` object:
267
+
268
+ - ` tunnel.srcPort ` (provided by [ ember-cli-deploy-ssh-tunnel] [ 7 ] )
269
+
273
270
## Running Tests
274
271
275
272
- ` npm test `
@@ -280,3 +277,4 @@ The following properties are expected to be present on the deployment `context`
280
277
[ 4 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-build " ember-cli-deploy-build "
281
278
[ 5 ] : https://github.com/ember-cli/ember-cli-deploy " ember-cli-deploy "
282
279
[ 6 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data " ember-cli-deploy-revision-data "
280
+ [ 7 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-ssh-tunnel " ember-cli-deploy-ssh-tunnel "
0 commit comments