ember-cli-deploy-ssh-execute
v0.2.0
Published
An ember-cli-deploy plugin to execute commands after successful deploy via SSH
Downloads
5
Maintainers
Readme
ember-cli-deploy-ssh-execute
This plugin can be used to execute commands on a SSH server after a successful
deploy. It will trigger the defined commands in the
didActivate
hook.
Installation
ember install ember-cli-deploy-ssh-execute
Configuration
Add commands in your config/deploy.js
:
module.exports = function(deployTarget) {
var ENV = {
// ...
'ssh-execute': {
host: 'example.org',
port: 22,
username: 'deploy',
remoteDir: '/some/path/on/the/server',
commands: [
'./my-command.sh foo bar',
],
},
// ...
};
};
The following configuration options are available:
Required:
- host
- username
- commands
Optional:
- port
- remoteDir
- privateKey
- passphrase
- agent
Contributing
- Add the necessary tests for the change
- Implement the change
- Run the tests via
npm test
License
MIT