Commit 90240028 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

feat: 0318 ssh upload

parent 065438ce
......@@ -205,6 +205,24 @@ module.exports = {
BACK_GATEWAY: 'http://10.0.0.27:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.0.27:9880',
YAPI_URL: 'http://10.0.0.25:4000/'
YAPI_URL: 'http://10.0.0.25:4000/',
// 注 交付中心同事可不使用下面的ssh配置
ssh: JSON.stringify({
user: "root",
// Password optional, prompted if none given
password: "SsyLingxi@test666",
host: "10.0.0.27",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/home/www/platform/dist/",
// 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
})
}
}
......@@ -7,6 +7,7 @@
"upload:25": "cross-env PRO_ENV=25 taskName=upload yarn scripts:build",
"upload:study": "cross-env PRO_ENV=study taskName=upload yarn scripts:build",
"upload:v2": "cross-env PRO_ENV=v2 taskName=upload yarn scripts:build",
"upload:v2-0318": "cross-env PRO_ENV=v2-0318 taskName=upload yarn scripts:build",
"upload:v2Preview": "cross-env PRO_ENV=v2Preview taskName=upload yarn scripts:build",
"upload:v2-demo": "cross-env PRO_ENV=v2-demo taskName=upload yarn scripts:build",
"upload:v2scm": "cross-env PRO_ENV=v2scm taskName=upload yarn scripts:build",
......
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