# ember-cli-deploy-scp

> Easy deploy for Ember Apps using SCP

Latest version **1.0.12** (published 2018-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-deploy-scp
pnpm add ember-cli-deploy-scp
yarn add ember-cli-deploy-scp
bun add ember-cli-deploy-scp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2018-08-29 |
| First published | 2016-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 2 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | michaljach |
| Keywords | ember-addon, ember-cli-deploy-plugin |

## Links

- npm: https://www.npmjs.com/package/ember-cli-deploy-scp
- Repository: https://github.com/michaljach/ember-cli-deploy-scp
- Homepage: https://github.com/michaljach/ember-cli-deploy-scp#readme
- Issues: https://github.com/michaljach/ember-cli-deploy-scp/issues
- npm.io page: https://npm.io/package/ember-cli-deploy-scp

## Dependencies (2)

- [rsync](https://npm.io/package/rsync.md) ^0.4.0
- [ember-cli-deploy-plugin](https://npm.io/package/ember-cli-deploy-plugin.md) ^0.2.2

## Recent versions

- 1.0.12 (latest) — 2018-08-29
- 1.0.11 — 2017-11-13
- 1.0.10 — 2017-10-18
- 1.0.9 — 2017-05-04
- 1.0.8 — 2017-03-29
- 1.0.7 — 2016-07-04
- 1.0.6 — 2016-07-04
- 1.0.5 — 2016-03-29
- 1.0.4 — 2016-03-29
- 1.0.3 — 2016-03-16
- 1.0.2 — 2016-02-22
- 1.0.1 — 2016-02-22
- 1.0.0 — 2016-02-22
- 0.1.0 — 2016-02-18
- 0.0.8 — 2016-02-18
- … 7 more at https://npm.io/package/ember-cli-deploy-scp/versions

## README

# ember-cli-deploy-scp [![Build Status](https://travis-ci.org/michaljach/ember-cli-deploy-scp.svg?branch=master)](https://travis-ci.org/michaljach/ember-cli-deploy-scp) [![](https://ember-cli-deploy.github.io/ember-cli-deploy-version-badges/plugins/ember-cli-deploy-s3.svg)](http://ember-cli-deploy.github.io/ember-cli-deploy-version-badges/)

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

![ember-cli-deploy-scp](http://i.imgur.com/30TaZJu.png)

## Installation
```sh
# 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`:

```javascript
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](https://www.npmjs.com/package/rsync#flagsflags-set) command (default is `rtvu`).
`options` | Options to pass to the [rsync](https://www.npmjs.com/package/rsync#setoption-value) 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)`](https://askubuntu.com/questions/625085/rsync-over-ssh-error)
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.

---
_Source: https://npm.io/package/ember-cli-deploy-scp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
