allow both 'file' and 'greenlock' when protocol=='httpall'

This commit is contained in:
luk.lu
2019-06-02 13:13:44 +08:00
parent 238d907459
commit acea47725d
3 changed files with 49 additions and 27 deletions

View File

@@ -1,15 +1,15 @@
module.exports={
protocol:'http',
host:'localhost',
port:undefined,
module.exports = {
protocol: 'http',
host: 'localhost',
port: undefined,
deploy:{
host:'', // 待部署到的主机
port:'22', // 带部署到的主机的 SSH 端口
root:'/home/tic/node.console.web', // 待部署到的目录路径
dist:'dist', // 待部署到的文件夹
user:'tic', // 登录用户名
password:'', // 登录用户密码
key:`${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
deploy: {
host: '', // 待部署到的主机
port: '22', // 带部署到的主机的 SSH 端口
root: '/home/tic/node.console.web', // 待部署到的目录路径
dist: 'dist', // 待部署到的文件夹
user: 'tic', // 登录用户名
password: '', // 登录用户密码
key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
},
}
}