xiongzhu 4 년 전
부모
커밋
398102850f
2개의 변경된 파일11개의 추가작업 그리고 5개의 파일을 삭제
  1. 10 4
      build.sh
  2. 1 1
      src/main/java/com/izouma/jmrh/web/AuthenticationController.java

+ 10 - 4
build.sh

@@ -1,7 +1,13 @@
+mkdir -p build
 git checkout
 git pull
-#(cd src/main/vue && npm run build)
 mvn clean package
-systemctl stop zmj
-cp target/zhumj-0.0.1-SNAPSHOT.jar /var/www/zmj/zhumj-0.0.1-SNAPSHOT.jar
-systemctl start zmj
+(cd src/main/vue && yarn && yarn build)
+(cd src/main/jmrh && yarn && yarn build)
+(cd src/main/data-center && yarn && yarn build)
+(cd src/main/data-center-admin && yarn && yarn build)
+cp target/jmrh-0.0.1-SNAPSHOT.jar build/
+cp src/main/vue/dist build/admin
+cp src/main/vue/dist build/jmrh
+cp src/main/data-center/dist build/data-center
+cp src/main/data-center-admin/dist build/data-center-admin

+ 1 - 1
src/main/java/com/izouma/jmrh/web/AuthenticationController.java

@@ -93,7 +93,7 @@ public class AuthenticationController {
             scheduler.schedule(() -> {
                 loginCache.putIfAbsent(mail, Integer.valueOf(0));
                 loginCache.put(mail, loginCache.get(mail, Integer.class) - 1);
-            }, 1, TimeUnit.SECONDS);
+            }, 10, TimeUnit.MINUTES);
             throw new AuthenticationException("用户名或密码错误", e);
         }
     }