@dodoroy/rsync
v1.0.0
Published
remote sync tool
Downloads
9
Readme
https://github.com/dodoroy/rsync## 本地文件同步到指定服务器目录功能脚本
npm 安装
npm install @cnpm/rsync
调用方法
终端执行
rsync -to fphtml/image-gallery/dist/或者在 package.json 增加 script 命令:
"rsync": "rsync -to fphtml/image-gallery/dist/"终端执行
npm run rsync配置选项
- 本地文件同步到指定服务器目录功能脚本
- @param {String} -from 本地需要同步的路径,默认当前项目
/dist/目录 - @param {String} -to 同步到服务器项目位置,默认为
/application/search/www/当前项目名称html/dist/ - @param {String} -host 服务器的
host,默认10.10.128.98 - @param {String} -rsa 用户秘钥配置文件路径,默认为当前用户
home目录 - 用户秘钥配置文件配置说明
