This commit is contained in:
Luk Lu
2019-11-05 14:21:46 +08:00
parent 978948bff0
commit eb0a647ca9
2 changed files with 6 additions and 7 deletions

View File

@@ -10,12 +10,11 @@ module.exports={
sslCA: '/etc/letsencrypt/live/server.vic.yuanjin.net/bundle.pem', // ssl ca file,
deploy: {
type: 'web',
host: 'server.vic.yuanjin.net', // 待部署到的主机
port: '22', // 部署到的主机的 SSH 端口
dir: '/home/adot/APPNAME', // 待部署到的目录路径
dist: 'dist', // 待部署到的文件夹
user: 'adot', // 登录用户名
from: './dist', // 待部署到的文件夹
type: 'git',
repo: 'https://github.com/vichome/webapp', // 部署到的主机
gituser: 'vic-team',
gitemail: 'vic-team@outlook.com',
password: '', // 登录用户密码
key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
},

View File

@@ -9,7 +9,7 @@
"lint:ts": "tslint \"src/**/*.ts\" \"src/**/*.tsx\"",
"dev": "umi dev",
"dist": "umi build",
"deploy": "node ./node_modules/deployer/deploy.js --type git --repo 'https://github.com/vichome/webapp' --local 'dist'",
"deploy": "node ./node_modules/deployer/deploy.js",
"allinone": "npm run dist && npm run deploy",
"daemon.pm2": "cross-env NODE_ENV=production pm2 start ./node_modules/webserver/server.js --name vic.h5"
},