# grunt-ftps-deploy

> Deploy files to sftp server

Latest version **0.1.16** (published 2016-05-16) · 0 weekly downloads

## Install

```sh
npm install grunt-ftps-deploy
pnpm add grunt-ftps-deploy
yarn add grunt-ftps-deploy
bun add grunt-ftps-deploy
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.16 |
| Published | 2016-05-16 |
| First published | 2014-12-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | ybduan |
| Maintainers | ybduan |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-ftps-deploy
- Repository: https://github.com/dyb/grunt-ftps-deploy
- Homepage: https://github.com/dyb/grunt-ftps-deploy#readme
- npm.io page: https://npm.io/package/grunt-ftps-deploy

## Dependencies (1)

- [ftp](https://npm.io/package/ftp.md) ^0.3.10

## Recent versions

- 0.1.16 (latest) — 2016-05-16
- 0.1.14 — 2016-05-16
- 0.1.13 — 2015-12-15
- 0.1.12 — 2015-11-30
- 0.1.11 — 2015-11-30
- 0.1.10 — 2015-08-17
- 0.1.9 — 2015-08-17
- 0.1.8 — 2015-07-24
- 0.1.7 — 2015-01-26
- 0.1.6 — 2015-01-26
- 0.1.5 — 2014-12-30
- 0.1.4 — 2014-12-30
- 0.1.3 — 2014-12-30
- 0.1.2 — 2014-12-30
- 0.1.1 — 2014-12-30
- … 1 more at https://npm.io/package/grunt-ftps-deploy/versions

## README

# grunt-ftps-deploy

> Deploy files to ftps server

## Getting Started
This plugin requires Grunt `~0.4.5`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-ftps-deploy --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-ftps-deploy');
```

## The "ftps_deploy" task

### Overview
In your project's Gruntfile, add a section named `ftps_deploy` to the data object passed into `grunt.initConfig()`.

to avoid having the progress of the upload written to console, change or remove the options.silent parameter.

```js
grunt.initConfig({
  ftps_deploy: {
    deploy: {
      options: {
        auth:{
          host:'0.0.0.0',
          port: 3000,
          authKey: 'key1',
          secure: true
        },
        silent:false
      },
      files: [{
        expand: true,
        cwd:'app',
        src: ['**/* ', '!**/*.html'],
        dest: '/utf8/3g/dyb/test'
      }]
    }
  }
})

```

.ftppass
```json
{
  "key1": {
    "username": "ybduan",
    "password": "password"
  }
}
```

### Others

* Touch a file named `.ftppass` that contains your ftp username and password
* If you are using ftp over SSL,  `secure` must be true
* Make sure path in `files.dest` are already exsit

### Q&A
When you are pushing files to sftp, and meet with the following problem on windows

```
unable to load config info from /usr/local/ssl/openssl.cnf
```

plz download [openssl](http://slproweb.com/products/Win32OpenSSL.html) first, and set this environment variable 
`OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg`  for X86
`OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg`  for X64

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