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";