0.2.0 • Published 3 years ago

ember-cli-deploy-ssh-execute v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

ember-cli-deploy-ssh-execute

Build Status

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