修改node打包配置和Jenkins打包部署

This commit is contained in:
program-walker 2020-09-28 17:24:46 +08:00
parent 61b6666bdc
commit 44e7b47287
2 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,9 @@ pipeline {
}
stage('Publish') {
steps {
sh 'cp -rf ./dist/* /usr/local/joylink/jlclient'
sh 'mkdir -p /usr/local/joylink/official-website'
sh 'rm -rf /usr/local/joylink/official-website/*'
sh 'cp -rf ./dist/* /usr/local/joylink/official-website/'
}
}
}

View File

@ -9,8 +9,8 @@ const name = defaultSettings.title;
const port = 9520;
module.exports = {
publicPath: "/official-website",
outputDir: "dist/official-website",
publicPath: "/",
outputDir: "dist",
assetsDir: "static",
lintOnSave: false,
productionSourceMap: false,