'updated'

This commit is contained in:
luk.lu
2022-07-21 12:12:53 +08:00
parent 8115d2bfdf
commit 425e3796c3
6 changed files with 31 additions and 35 deletions

5
.gitignore vendored
View File

@@ -32,6 +32,5 @@
.deploy_git .deploy_git
envar-base-custom.js envar-web-custom.js
envar-base-dynamic.js envar-deploy-secret.js
envar-base-secret.js

View File

@@ -1,3 +0,0 @@
module.exports={
}

View File

@@ -1,28 +0,0 @@
module.exports = {
deploy: {
fromPath: "./dist",
gotoTarget: "github",
github: {
targetType: "git",
repo: "https://github.com/tuc-vic/vic-user.bittic.org",
branch: "main",
gitname: "vic-team",
gitemail: "vic-team@outlook.com",
url: 'http://vic-user.bittic.org'
},
vultr: {
targetType: "ssh",
host: "vic-user.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-user",
url: "http://vic-user.bittic.cn",
},
},
};

28
envar-deploy.js Normal file
View File

@@ -0,0 +1,28 @@
module.exports = {
deploy: {
fromPath: './dist',
gotoTarget: 'github',
github: {
targetType: 'git',
repo: 'https://github.com/tuc-vic/vic-user.bittic.org',
branch: 'main',
gitname: 'vic-team',
gitemail: 'vic-team@outlook.com',
url: 'http://vic-user.bittic.org',
},
vultr: {
targetType: 'ssh',
host: 'vic-user.bittic.org',
targetPath: '/faronear/tuc-vic/vic.user.react',
targetDir: 'dist',
user: 'adot',
password: '',
privateKey: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
},
unicloud: {
targetType: 'serverless',
space: 'cn-bittic-vic-user',
url: 'http://vic-user.bittic.cn',
},
},
}

View File

@@ -7,7 +7,7 @@
"check": "umi dev", "check": "umi dev",
"create": "umi build", "create": "umi build",
"deploy": "node ./node_modules/basend-deployer/deploy.js", "deploy": "node ./node_modules/basend-deployer/deploy.js",
"serve.pm2": "cross-env NODE_ENV=production pm2 start ./node_modules/basend-webserver/server.js --name vic.user.react", "serve.pm2": "cross-env NODE_ENV=production pm2 start ./node_modules/basend-webserver/webserver.js --name vic.user.react",
"lint:es": "eslint --ext .js src mock tests", "lint:es": "eslint --ext .js src mock tests",
"lint:ts": "tslint \"src/**/*.ts\" \"src/**/*.tsx\"", "lint:ts": "tslint \"src/**/*.ts\" \"src/**/*.tsx\"",
"test": "umi test" "test": "umi test"