gitbook-plugin-ftpsync
v2.0.3
Published
sync gitbook to ftp server after each build
Downloads
5
Readme
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.