远程部署工具
Go to file
2020-03-31 08:24:38 +08:00
.deploy_git@53affcafda change deploy type 'web' to 'ssh' 2020-02-23 11:06:16 +08:00
.gitignore 第一次导入 2019-09-10 12:06:56 +08:00
deploy.js u 2020-03-15 16:07:50 +08:00
package.json update node-ssh from 6.0.0 to 8.0.0 2020-03-31 08:24:38 +08:00
README.md 添加 -n, --gitname 和 -e, --gitemail 参数 2019-10-25 10:15:26 +08:00

参数

  • -t, --type: web(默认) 或 git
    • 如果是 git
    • 如果是 web
      • -H, --host: 远程主机
      • -P, --port: 远程端口,默认为 22
      • -D, --dir: 远程路径,例如 /home/USER/FOLDER
      • -d, --dist: 远程文件夹,例如 www。默认为 dist。
  • -l, --local: 本地路径,例如 ../../project/public。默认为 ./dist
  • -u, --user: 用户名
  • -p, --password: 密码
  • -k, --key: 密钥文件