Skip to content

Latest commit

 

History

History
67 lines (61 loc) · 1.47 KB

README.md

File metadata and controls

67 lines (61 loc) · 1.47 KB

ember-cli-deploy-scp

Easy deploy your Ember applications via ssh using scp.

ember-cli-deploy-scp

Installation

Install ember-cli-deploy first:

ember install ember-cli-deploy

Install ember-cli-deploy-build for automated building:

ember install ember-cli-deploy-build

Then install ember-cli-deploy-scp plugin

ember install ember-cli-deploy-scp

Usage

Edit your config/deploy.js file:

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

  if (environment === 'production') {
    ENV['scp'] = {
        username: '<your-username>',
        host: '<your-host>',
        path: '<your-serverpath>'
    }
  };
  return ENV;
};

and start deploying:

ember deploy production

Configuration Options

username

Username to connect via SSH. required

host

Host (server address) to connect via SSH. required

path

Path where latest revision will be deployed to. (All older builds lands in parent directory). required

port

SSH port on target server, default: 22. optional

directory

Directory that will be uploaded, default: tmp/deploy-dist/. optional

exclude

Exclude specified files and directories from uploading. optional

displayCommands

More complex logging. optional

flags

Flags to pass to the rsync command, default: rtvu. optional