@@ -72,7 +72,7 @@ The Redis host. If [url](#url) is defined, then this option is not needed.
7272
7373The Redis port. If [ url] ( #url ) is defined, then this option is not needed.
7474
75- * Default:* ` 6379 `
75+ * Default:* ` 6379 ` or ` context.tunnel.srcPort ` if present (set by [ ember-cli-deploy-ssh-tunnel ] [ 7 ] )
7676
7777### database
7878
@@ -227,18 +227,13 @@ Add set up your `deploy.js` similar to the following:
227227``` js
228228 ' redis' : {
229229 host: " localhost" ,
230- port: 49156
231230 },
232231 ' ssh-tunnel' : {
233232 username: " your-ssh-username" ,
234233 host: " remote-redis-host"
235- srcPort: 49156
236234 }
237235```
238236
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-
242237### What if my Redis server is only accessible * from* my remote server?
243238
244239Sometimes 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:
250245``` js
251246 ' redis' : {
252247 host: " localhost" ,
253- port: 49156
254248 },
255249 ' ssh-tunnel' : {
256250 username: " your-ssh-username" ,
257251 host: " remote-redis-host"
258- srcPort: 49156 ,
259252 dstHost: " location-of-your-elasticache-node-or-remote-redis"
260253 }
261254```
@@ -270,6 +263,10 @@ The following properties are expected to be present on the deployment `context`
270263- ` commandLineArgs.revisionKey ` (provided by [ ember-cli-deploy] [ 5 ] )
271264- ` deployEnvironment ` (provided by [ ember-cli-deploy] [ 5 ] )
272265
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+
273270## Running Tests
274271
275272- ` npm test `
@@ -280,3 +277,4 @@ The following properties are expected to be present on the deployment `context`
280277[ 4 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-build " ember-cli-deploy-build "
281278[ 5 ] : https://github.com/ember-cli/ember-cli-deploy " ember-cli-deploy "
282279[ 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