1.0.0 • Published 5 years ago

@dodoroy/rsync v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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 目录
  • 用户秘钥配置文件配置说明