1.1.5 • Published 4 years ago

dispose-helper v1.1.5

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Dispose-helper

Your System

centos

System Tool

sudo yum install zip // 系统压缩工具
sudo yum install unzip // 系统解压工具
sudo yum install nginx // 部署静态资源服务器

Pull git online code through ssh to connect to the server, implement install and build with one click, and configure nginx to implement automated deployment

npm install dispose-helper -D

You need to create an ssh-config.js file in the project root

For more hostConfig configuration, please refer to ssh-node

example

module.exports = {
  hostConfig: {
    host: '192.168.*.*', // 主机地址
    port: '', // 端口 不填默认 80
    username: 'root', // 用户名
    password: '' // 密码
    privateKey: '', // 登录密钥 (密码 密钥二选一)
  },
  fileName: 'docs', // 打包文件名
  cwd: '/web', // 代码拉取运行环境路径
  pathZip: '/web/demo', // 打包文件存放路径
  locationRoot: '/web/demo/vue-test', // nginx loaction root 地址
  port: 8080, //端口
  nginxConfLocation: '/etc/nginx/conf.d' // nginx配置地址
}

After the configuration is complete, in the root directory

dispose

You can also add npm script in the package.json file

{
  "scripts": {
    "publish": "dispose"
  }
}
npm run pusblish
1.1.5

4 years ago

1.1.4

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago