seperate to ConfigDeploy.js

This commit is contained in:
Luk Lu
2021-09-05 13:46:51 +08:00
parent 01a5e69ed6
commit 83c373bcfc
2 changed files with 11 additions and 9 deletions

View File

@@ -14,13 +14,4 @@ module.exports={
sslCA: '/etc/letsencrypt/live/server.vic.yuanjin.net/bundle.pem', // ssl ca file,
},
deploy: {
from: './dist', // 待部署到的文件夹
type: 'git',
repo: 'https://github.com/vichome/app', // 待部署到的主机
gitname: 'vic-team',
gitemail: 'vic-team@outlook.com',
password: '', // 登录用户密码
key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
},
}

11
ConfigDeploy.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports={
deploy: {
from: './dist', // 待部署到的文件夹
type: 'git',
repo: 'https://github.com/vichome/app', // 待部署到的主机
gitname: 'vic-team',
gitemail: 'vic-team@outlook.com',
password: '', // 登录用户密码
key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
},
}