diff --git a/ConfigDeploy.js b/ConfigDeploy.js index 7bfd993..aefdaf1 100644 --- a/ConfigDeploy.js +++ b/ConfigDeploy.js @@ -1,40 +1,28 @@ -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`, // 登录用户私钥文件 - }, -} - module.exports = { deploy: { fromPath: "./dist", gotoTarget: "github", github: { targetType: "git", - repo: "https://github.com/tuc-vic/vic.bittic.org", + repo: "https://github.com/tuc-vic/vic-app.bittic.org", branch: "main", - gitname: "log-team", - gitemail: "log-team@outlook.com", - url: 'http://vic.bittic.org' + gitname: "vic-team", + gitemail: "vic-team@outlook.com", + url: 'http://vic-app.bittic.org' }, vultr: { targetType: "ssh", - host: "vic.bittic.org", - targetPath: "/faronear/tuc-vic/vic.webhome.hexo", - targetDir: "public", + host: "vic-app.bittic.org", + targetPath: "/faronear/tuc-vic/vic.user.react", + targetDir: "dist", user: "adot", password: "", key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件 }, unicloud: { targetType: "serverless", - space: "cn-bittic-vic", - url: "http://vic.bittic.cn", + space: "cn-bittic-vic-app", + url: "http://vic-app.bittic.cn", }, }, }; diff --git a/package.json b/package.json index 843fcfa..6c049c0 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "umi test", "dist": "umi build", "deploy": "node ./node_modules/sol.deployer/deploy.js", - "allinone": "npm run dist && npm run deploy", + "allinone": "npm run boot && npm run dist && npm run deploy", "drive.pm2": "cross-env NODE_ENV=production pm2 start ./node_modules/sol.webserver/server.js --name vic.user.react" }, "dependencies": {