@@ -73,7 +73,7 @@ The Redis host. If [url](#url) is defined, then this option is not needed.
7373
7474The Redis port. If [ url] ( #url ) is defined, then this option is not needed.
7575
76- * Default:* ` 6379 `
76+ * Default:* ` 6379 ` or ` context.tunnel.srcPort ` if present (set by [ ember-cli-deploy-ssh-tunnel ] [ 7 ] )
7777
7878### database
7979
@@ -222,18 +222,13 @@ Add set up your `deploy.js` similar to the following:
222222``` js
223223 ' redis' : {
224224 host: " localhost" ,
225- port: 49156
226225 },
227226 ' ssh-tunnel' : {
228227 username: " your-ssh-username" ,
229228 host: " remote-redis-host"
230- srcPort: 49156
231229 }
232230```
233231
234- _ (NB: by default ` ssh-tunnel ` assigns a random port for srcPort, but we need that
235- to be the same for our ` redis ` config, so I've just hardcoded it above)_
236-
237232### What if my Redis server is only accessible * from* my remote server?
238233
239234Sometimes you need to SSH into a server (a "bastion" server) and then run
@@ -245,12 +240,10 @@ your Redis host as the destination host, like so:
245240``` js
246241 ' redis' : {
247242 host: " localhost" ,
248- port: 49156
249243 },
250244 ' ssh-tunnel' : {
251245 username: " your-ssh-username" ,
252246 host: " remote-redis-host"
253- srcPort: 49156 ,
254247 dstHost: " location-of-your-elasticache-node-or-remote-redis"
255248 }
256249```
@@ -265,6 +258,10 @@ The following properties are expected to be present on the deployment `context`
265258- ` commandLineArgs.revisionKey ` (provided by [ ember-cli-deploy] [ 5 ] )
266259- ` deployEnvironment ` (provided by [ ember-cli-deploy] [ 5 ] )
267260
261+ The following properties are used if present on the deployment ` context ` object:
262+
263+ - ` tunnel.srcPort ` (provided by [ ember-cli-deploy-ssh-tunnel] [ 7 ] )
264+
268265## Running Tests
269266
270267- ` npm test `
@@ -275,3 +272,4 @@ The following properties are expected to be present on the deployment `context`
275272[ 4 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-build " ember-cli-deploy-build "
276273[ 5 ] : https://github.com/ember-cli/ember-cli-deploy " ember-cli-deploy "
277274[ 6 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data " ember-cli-deploy-revision-data "
275+ [ 7 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-ssh-tunnel " ember-cli-deploy-ssh-tunnel "
0 commit comments