add production configuration

This commit is contained in:
Luk Lu
2019-12-14 14:40:57 +08:00
parent 1e324a2498
commit b2a1286fe7
4 changed files with 21 additions and 11 deletions

View File

@@ -3,18 +3,23 @@ module.exports={
host: 'localhost',
port: undefined,
from: './dist', // local path to serve as webroot
// 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置:
sslType: '', // '' or greenlock or file
sslDomainList: ['localhost'],
sslKey: undefined, // ssl key file,
sslCert: undefined, // ssl cert file,
sslCA: undefined, // ssl ca file,
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: 'web',
host: 'localhost', // 待部署到的主机
port: '22', // 带部署到的主机的 SSH 端口
dir: '/home/adot/APPNAME', // 待部署到的目录路径
dir: '/faronear/ORG/APP', // 待部署到的目录路径
dist: 'dist', // 待部署到的文件夹
user: 'adot', // 登录用户名
password: '', // 登录用户密码