From 9d5fd36af4870faa74e2620fc37e50314ebd935f Mon Sep 17 00:00:00 2001 From: hyunsu Date: Wed, 12 Jun 2024 02:55:01 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20deploy=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 2 +- .../store/clothstar/common/config/SecurityConfiguration.java | 2 +- .../clothstar/member/controller/MemberViewController.java | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 0e1cd803..a82f8bed 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -25,4 +25,4 @@ fi DEPLOY_JAR=$DEPLOY_PATH$JAR_NAME echo "> DEPLOY_JAR 배포" >> /home/ubuntu/action/deploy.log -sudo nohup java -jar "$DEPLOY_JAR" >> /home/ubuntu/deploy.log 2>/home/ubuntu/action/deploy_err.log & \ No newline at end of file +sudo nohup java -jar ${JAR_DEV_ENV} "$DEPLOY_JAR" >> /home/ubuntu/deploy.log 2>/home/ubuntu/action/deploy_err.log & \ No newline at end of file diff --git a/src/main/java/org/store/clothstar/common/config/SecurityConfiguration.java b/src/main/java/org/store/clothstar/common/config/SecurityConfiguration.java index a1600cd8..a7f5c568 100644 --- a/src/main/java/org/store/clothstar/common/config/SecurityConfiguration.java +++ b/src/main/java/org/store/clothstar/common/config/SecurityConfiguration.java @@ -52,7 +52,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .formLogin(AbstractHttpConfigurer::disable); http.authorizeHttpRequests((auth) -> auth - .requestMatchers("/", "/login", "/userPage", "/sellerPage", "/adminPage" + .requestMatchers("/", "/login", "/userPage", "/sellerPage", "/adminPage", "/main" , "/v1/login", "/signup", "/v1/members/email/**", "/v1/access", "/v1/categories/**", "/v1/products/**", "/v1/productLines/**", "/v2/productLines/**", "/v1/orderdetails", "/v1/orders", diff --git a/src/main/java/org/store/clothstar/member/controller/MemberViewController.java b/src/main/java/org/store/clothstar/member/controller/MemberViewController.java index 1c777eab..61be82ef 100644 --- a/src/main/java/org/store/clothstar/member/controller/MemberViewController.java +++ b/src/main/java/org/store/clothstar/member/controller/MemberViewController.java @@ -11,6 +11,11 @@ @Tag(name = "index", description = "회원가입, 로그인, 로그아웃 기능과 user, seller, admin 페이지로 이동하기 위한 API 입니다.") @Controller public class MemberViewController { + @GetMapping("/main") + public String main() { + return "index"; + } + @GetMapping("/signup") public String signup() { return "signup";