lingser-serve
v1.0.1
Published
基于scp2自动部署
Downloads
8
Readme
安装
npm i lingser-serve
项目根目录新建文件 deploy.js 添加以下内容
const test = require('./index')
test.uploadServe({
dist: '本地文件夹名称',
host: '服务器地址',
password: '服务器密码',
path: '服务器文件路径'
})
在package.json scripts 添加命令
"deploy": "node deploy.js"
"upload": "npm run build && npm run deploy"