1.0.12 • Published 6 years ago

ember-cli-deploy-scp v1.0.12

Weekly downloads
145
License
MIT
Repository
github
Last release
6 years ago

ember-cli-deploy-scp Build Status npm.io

Easy deploy your Ember applications via SSH using SCP and rsync.

ember-cli-deploy-scp

Installation

# install dependencies (both are most likely already installed)
ember install ember-cli-deploy
ember install ember-cli-deploy-build

# install this plugin
ember install ember-cli-deploy-scp

Usage

Edit config/deploy.js:

module.exports = function(environment){
  let ENV = {};

  // other configuration…

  if (environment === 'production') {
    ENV['scp'] = {
      nodes: [{
        username: '<ssh-username>',
        host: '<ssh-host>',
        path: '<remote-server-path>',
      }],
    }
  };

  // …

  return ENV;
};

You are now ready to deploy with ember deploy production.

Configuration Options

KeyDescription
nodesArray of nodes to connect with. For each node the required keys are host, username and path as well as an optional port (defaults to 22).
directoryDirectory that will be uploaded (default is tmp/deploy-dist/).
excludeExclude specified files and directories from uploading.
flagsFlags to pass to the rsync command (default is rtvu).
optionsOptions to pass to the rsync command (empty by default). For example { 'rsync-path': 'mkdir -p /a/great/directory && rsync' }

Common Issues

code 12 error from rsync

A error in rsync protocol data stream (code 12) that may be because the remote path is incorrect. All directories leading up to the last directory in the path must already exist for rsync to work. This is a limitation in rsync itself, not an issue with this plugin.

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago