Code Monkey home page Code Monkey logo

ember-cli-deploy-scp's Introduction

ember-cli-deploy-scp Build Status

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

Key Description
nodes Array 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).
directory Directory that will be uploaded (default is tmp/deploy-dist/).
exclude Exclude specified files and directories from uploading.
flags Flags to pass to the rsync command (default is rtvu).
options Options 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.