@@ -73,7 +73,7 @@ The Redis host. If [url](#url) is defined, then this option is not needed.
73
73
74
74
The Redis port. If [ url] ( #url ) is defined, then this option is not needed.
75
75
76
- * Default:* ` 6379 `
76
+ * Default:* ` 6379 ` or ` context.tunnel.srcPort ` if present (set by [ ember-cli-deploy-ssh-tunnel ] [ 7 ] )
77
77
78
78
### database
79
79
@@ -222,18 +222,13 @@ Add set up your `deploy.js` similar to the following:
222
222
``` js
223
223
' redis' : {
224
224
host: " localhost" ,
225
- port: 49156
226
225
},
227
226
' ssh-tunnel' : {
228
227
username: " your-ssh-username" ,
229
228
host: " remote-redis-host"
230
- srcPort: 49156
231
229
}
232
230
```
233
231
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
-
237
232
### What if my Redis server is only accessible * from* my remote server?
238
233
239
234
Sometimes 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:
245
240
``` js
246
241
' redis' : {
247
242
host: " localhost" ,
248
- port: 49156
249
243
},
250
244
' ssh-tunnel' : {
251
245
username: " your-ssh-username" ,
252
246
host: " remote-redis-host"
253
- srcPort: 49156 ,
254
247
dstHost: " location-of-your-elasticache-node-or-remote-redis"
255
248
}
256
249
```
@@ -265,6 +258,10 @@ The following properties are expected to be present on the deployment `context`
265
258
- ` commandLineArgs.revisionKey ` (provided by [ ember-cli-deploy] [ 5 ] )
266
259
- ` deployEnvironment ` (provided by [ ember-cli-deploy] [ 5 ] )
267
260
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
+
268
265
## Running Tests
269
266
270
267
- ` npm test `
@@ -275,3 +272,4 @@ The following properties are expected to be present on the deployment `context`
275
272
[ 4 ] : https://github.com/ember-cli-deploy/ember-cli-deploy-build " ember-cli-deploy-build "
276
273
[ 5 ] : https://github.com/ember-cli/ember-cli-deploy " ember-cli-deploy "
277
274
[ 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