修改node打包配置和Jenkins打包部署
This commit is contained in:
parent
61b6666bdc
commit
44e7b47287
@ -17,7 +17,9 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
steps {
|
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/'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@ const name = defaultSettings.title;
|
|||||||
const port = 9520;
|
const port = 9520;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: "/official-website",
|
publicPath: "/",
|
||||||
outputDir: "dist/official-website",
|
outputDir: "dist",
|
||||||
assetsDir: "static",
|
assetsDir: "static",
|
||||||
lintOnSave: false,
|
lintOnSave: false,
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
|
Reference in New Issue
Block a user