[deploy.js, ConfigBasic.js] 升级部署机制,把默认参数存放在 ConfigBasic.js 里。

[package.json] 补充 cross-env 以支持 npm run daemon。
This commit is contained in:
luk.lu
2019-01-08 15:43:24 +08:00
parent 74d6c9eb6f
commit 6f59f1dfc6
3 changed files with 58 additions and 21 deletions

View File

@@ -6,4 +6,14 @@ module.exports={
// sslKey: '/etc/letsencrypt/live/bittic.org/privkey.pem', // ssl key file,
// sslCert: '/etc/letsencrypt/live/bittic.org/cert.pem', // ssl cert file,
// sslCA: '../SSL/ca_bundle.crt', // ssl ca file,
deploy:{
host:'', // 待部署到的主机
port:'22', // 带部署到的主机的 SSH 端口
root:'/home/tic/node.console.web', // 待部署到的目录路径
dist:'dist', // 待部署到的文件夹
user:'tic', // 登录用户名
password:'', // 登录用户密码
key:`${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
},
}