gitbook-plugin-ftpsync

2.0.3 • Public • Published

not work yet. please skip this plugin.

ftp deployer

sync gitbook to ftp server after each build.

How it's implemented

The plugin call bash ftpsync via child_process.exec. So you must install ftpsync globally.

When I call ftpsync in node, there is no result returned.

Install

$ sudo npm install ftpsync -g
$ npm install gitbook-plugin-ftpsync --save

Config book.json

{
    plugins: ["ftpsync"],
    pluginsConfig: {
        "ftpsync": {
            "host": "xxx.org",
            "port": "21",
            "user": "usr_name",                              
            "pass": "ftp_password",                                 
            "remote": "/domains/xxx.org/public_html/"
        } 
    }
}

Caution

since the usr/password of your ftp is saved in book.json, you need keep your book.json in private.

Readme

Keywords

Package Sidebar

Install

npm i gitbook-plugin-ftpsync

Weekly Downloads

1

Version

2.0.3

License

GPL-3.0

Last publish

Collaborators

  • zhiqiang