Skip to content

Latest commit

 

History

History
69 lines (57 loc) · 1.46 KB

README.md

File metadata and controls

69 lines (57 loc) · 1.46 KB

abe-deployer-sftp

An Abe deployer to sync your site in sftp or ftp

Introduction

This plugin is a sftp-ftp deployer for your Abe blog. It relies on node-ftps. Thanks to Sébastien Chopin

Everytime you'll publish/unpublish a content, your blog will be sync'ed with the remote directory.

Installation

You'll need lftp executable Abe server side.

Linux

sudo apt-get install lftp
# or
sudo yum install lftp

OSX (Homebrew)

sudo brew install lftp

Windows

C:\> choco install lftp

Plugin Installation

abe install abecms/abe-deployer-sftp

Configuration

In abe.json, just add sftp entry in "deployers" section:

sftp config with ssh Key

"deployers": {
  "sftp": {
    	"active": true,
    	"host": "yourserver",
    	"requiresPassword": false,
    	"username": "sftp user",
    	"requireSSHKey":  true,
    	"sshKeyPath": "/path/to/id_rsa_pub",
    	"remoteDir": "/path/to/your/abecms/site",
    	"protocol": "sftp"
  }
}

ftp config with username/password:

"deployers": {
    "sftp": {
      "active": true,
      "host": "yourserver",
      "requiresPassword": true,
      "username": "ftp user",
      "password":"Your_PaSSWoRD",
      "remoteDir": "/path/to/your/abecms/site",
      "protocol": "ftp"
    }
}

If you want to deactivate the plugin, set active as false.