1.0.3 • Published 11 months ago

deploy-to-server v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

1.安装

运行命令

pnpm i -D deploy-to-server

或安装到全局

pnpm i -g deploy-to-server

2.配置文件

格式是JavaScript,格式如下

module.exports = {
  path: '服务器路径',
  buildPath: '项目build路径',
  sshConfig: {
    host: '服务器地址',
    port: 22,
    username: '用户名',
    password: '密码',
  },
}

sshConfig配置见node-ssh的连接配置

3.使用方法

-c,加配置文件

deploy -c deploy-config.js
1.0.3

11 months ago

1.0.2

1 year ago