change deploy type 'web' to 'ssh'

This commit is contained in:
陆柯 2020-02-23 11:06:19 +08:00
parent b2a1286fe7
commit fe8e869419

View File

@ -16,7 +16,8 @@ module.exports={
}, },
deploy: { deploy: {
type: 'web', type: 'ssh',
from: './unpackage/dist/build/h5', // 以 HBuilderX + uniapp 的配置为例
host: 'localhost', // 待部署到的主机 host: 'localhost', // 待部署到的主机
port: '22', // 带部署到的主机的 SSH 端口 port: '22', // 带部署到的主机的 SSH 端口
dir: '/faronear/ORG/APP', // 待部署到的目录路径 dir: '/faronear/ORG/APP', // 待部署到的目录路径
@ -26,6 +27,18 @@ module.exports={
key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件 key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
}, },
deploy_git: {
type: 'git',
from: './unpackage/dist/build/h5',
repo: 'https://github.com/ORG/APP',
gitname: 'team',
gitemail: 'team@outlook.com',
password: '', // 登录用户密码
key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
},
},
// 如果使用虚拟主机 // 如果使用虚拟主机
/* /*
vhosts: [ vhosts: [