Commit 6abb7e58 authored by 前端-许佳敏's avatar 前端-许佳敏

Merge branch 'v2-uat' into v2

parents 0ab6845b 2190ed09
......@@ -140,4 +140,27 @@ module.exports = {
forcePasv: true
})
},
v2Test: {
SITE_ID: '1',
BACK_GATEWAY: 'http://lx-pre-gateway.shushangyun.com',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://lx-pre-gateway.shushangyun.com',
ssh: JSON.stringify({
user: "www",
// Password optional, prompted if none given
password: "Shushangyun520",
host: "120.24.6.245",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/usr/local/nginx/html/admin/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
}
......@@ -9,6 +9,7 @@
"upload:v2": "cross-env local=v2 taskName=upload yarn scripts:build",
"upload:v2Preview": "cross-env local=v2Preview taskName=upload yarn scripts:build",
"upload:study": "cross-env local=study taskName=upload yarn scripts:build",
"upload:v2Test": "cross-env local=v2Test taskName=upload yarn scripts:build",
"api": "god-ytt",
"start:analyze": "ANALYZE=1 umi dev",
"scripts:build": "node scripts/run",
......@@ -27,6 +28,7 @@
"build:v2Preview": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.220:8100 SOCKET_URL=ws://10.0.1.220:9400 yarn build",
"build:25": "cross-env SITE_ID=352 BACK_GATEWAY=http://10.0.0.25:8100 SOCKET_URL=ws://10.0.0.25:9400 yarn build",
"build:study": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.207:8100 SOCKET_URL=ws://10.0.1.207:9400 yarn build",
"build:v2Test": "cross-env SITE_ID=1 BACK_GATEWAY=http://lx-pre-gateway.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lx-pre-gateway.shushangyun.com yarn build",
"postinstall": "umi generate tmp",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"test": "umi-test",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment