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.
ember install ember-cli-deploy-ssh-execute
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:
Optional:
npm test
MIT