引用 so.base/config.js 来配置
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
module.exports={
|
||||
protocol: 'http',
|
||||
host: 'localhost',
|
||||
port: undefined,
|
||||
from: './dist', // local path to serve as webroot
|
||||
|
||||
production: {
|
||||
protocol: 'httpall',
|
||||
host: 'remote.domain',
|
||||
// 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置:
|
||||
sslType: 'file', // '' or greenlock or file
|
||||
sslDomainList: ['remote.domain'],
|
||||
sslKey: '/etc/letsencrypt/live/HOST/privkey.pem', // ssl key file,
|
||||
sslCert: '/etc/letsencrypt/live/HOST/fullchain.pem', // ssl cert file,
|
||||
sslCA: '/etc/letsencrypt/live/HOST/bundle.pem', // ssl ca file,
|
||||
},
|
||||
|
||||
deploy: {
|
||||
type: 'ssh',
|
||||
from: './unpackage/dist/build/h5', // 以 HBuilderX + uniapp 的配置为例
|
||||
host: 'localhost', // 待部署到的主机
|
||||
port: '22', // 带部署到的主机的 SSH 端口
|
||||
dir: '/faronear/ORG/APP', // 待部署到的目录路径
|
||||
dist: 'dist', // 待部署到的文件夹
|
||||
user: 'adot', // 登录用户名
|
||||
password: '', // 登录用户密码
|
||||
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: [
|
||||
{ webroot: 'dist', webindex: 'index.html', domainList: ['']}
|
||||
],
|
||||
*/
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user