Pārlūkot izejas kodu

Merge branch 'release_1.2.0' of http://git.qmth.com.cn/exam-score-statistic/exam-score-statistic-web into release_1.2.0

zhangjie 2 gadi atpakaļ
vecāks
revīzija
3945f68714
2 mainītis faili ar 30 papildinājumiem un 1 dzēšanām
  1. 29 0
      jenkins.sh
  2. 1 1
      vite.config.ts

+ 29 - 0
jenkins.sh

@@ -0,0 +1,29 @@
+#!/bin/bash
+set -e # 如果构建失败,则退出,不能删除旧的包
+if [ "$#" -ne 1 ] ; then
+  echo "Usage: $0 BUILD_ENV" >&2
+  exit 1
+fi
+
+pwd
+
+echo “build env: $1”
+
+pwd
+
+yarn
+npm run build-without-type-check
+
+mkdir -p ~/project/exam-score-statistic/static-new/temp
+cp -r  dist ~/project/exam-score-statistic/static-new/temp
+
+cd ~/project/exam-score-statistic/static-new
+if [ -d "dist" ]; then
+  currentTime=`date "+%Y%m%d%H%M%S"`
+  echo "dist backup... $currentTime"
+  rm -rf dist/*
+fi
+
+mv temp/dist .
+rm -rf temp
+echo "ok..."

+ 1 - 1
vite.config.ts

@@ -5,7 +5,7 @@ import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
 
 // const SERVER_URL = "http://192.168.10.108:7180";
 // const SERVER_URL = "http://192.168.10.138:13800";
-const SERVER_URL = "http://192.168.10.39:7100";
+const SERVER_URL = "http://192.168.10.39:7180";
 // const SERVER_URL = "http://192.168.10.54:8001";
 const path = require("path");