An ember-cli-deploy plugin to open an ssh tunnel during your deploy
**WARNING: This plugin is only compatible with ember-cli-deploy versions >= 0.5.0**
This plugins opens an ssh tunnel forwarding a port to the host you specify to one of your local ports.
A typical use case is to pair this plugin with the ember-cli-deploy-redis plugin to reach to redis servers that for security reasons are not listening to their public IP.
A plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.
For more information on what plugins are and how they work, please refer to the Plugin Documentation.
To get up and running quickly, do the following:
- Install this plugin
$ ember install ember-cli-deploy-ssh-tunnel
- Place the following configuration into
config/deploy.js
ENV['ssh-tunnel'] = {
username: 'yourname',
host: 'yourserver',
};
- Run the pipeline
$ ember deploy
Run the following command in your terminal:
ember install ember-cli-deploy-ssh-tunnel
For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.
configure
willUpload
didUpload
For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.
The user for the ssh connection
Default: undefined
The server to connect to
Default: undefined
The port to forward from the server
Default: 6379
The host to forward to on the destination server.
Default: localhost
The local port for the forwarding
Default: a random port between 49151
and 65535
The local path to your ssh private key
Default: ~/.ssh/id_rsa
The client used to create the ssh tunnel. This allows the user the ability to use their own client for uploading instead of the one provided by this plugin.
Default: the tunnel provided by tunnel-ssh
npm test
@lukemelia and @achambers and the other folks from the ember-cli-deploy project.
@tim-evans for the original implementation in ember-deploy-redis