Skip to content

zhangzq/gitbook-plugin-ftpsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

sync gitbook to ftp server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published