u
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user