From 44e7b47287c56fbc306491b1e621a4b0a631bed0 Mon Sep 17 00:00:00 2001 From: program-walker <418875866@qq.com> Date: Mon, 28 Sep 2020 17:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9node=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=92=8CJenkins=E6=89=93=E5=8C=85=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile-test | 4 +++- vue.config.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile-test b/Jenkinsfile-test index d06d759..510925d 100644 --- a/Jenkinsfile-test +++ b/Jenkinsfile-test @@ -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/' } } } diff --git a/vue.config.js b/vue.config.js index f19b82c..8d857a8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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,