From 4a2acd216935269ac92000972949ccb63a52d441 Mon Sep 17 00:00:00 2001 From: dongkyunKim Date: Tue, 13 Feb 2024 02:18:47 +0900 Subject: [PATCH 1/2] test() : deploy test --- .../controller/MatchingBoardController.java | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/controller/MatchingBoardController.java b/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/controller/MatchingBoardController.java index da75a41..b17a4cc 100644 --- a/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/controller/MatchingBoardController.java +++ b/Titto_Backend/src/main/java/com/example/titto_backend/matchingBoard/controller/MatchingBoardController.java @@ -1,8 +1,13 @@ package com.example.titto_backend.matchingBoard.controller; +import com.example.titto_backend.matchingBoard.dto.request.MatchingPostRequest.MatchingPostPagingRequestDto; +import com.example.titto_backend.matchingBoard.dto.response.matchingPostResponse.MatchingPostPagingResponseDto; import com.example.titto_backend.matchingBoard.service.matchingBoard.MatchingBoardService; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -11,18 +16,18 @@ @RequiredArgsConstructor @Tag(name = "Matching Board Controller", description = "매칭 게시판 관련 API") public class MatchingBoardController { - private final MatchingBoardService matchingBoardService; + private final MatchingBoardService matchingBoardService; -/* @GetMapping("/posts") - @Operation( - summary = "매칭 게시판 전체 조회", - description = "매칭 게시판의 전체 게시글을 조회합니다", - responses = { - @ApiResponse(responseCode = "200", description = "요청 성공"), - @ApiResponse(responseCode = "403", description = "인증 문제 발생"), - @ApiResponse(responseCode = "500", description = "관리자 문의") - }) - public MatchingPostPagingResponseDto getAllMatchingPosts(MatchingPostPagingRequestDto matchingPostPagingRequestDto) { - return matchingBoardService.findAllPosts(matchingPostPagingRequestDto); - }*/ + @GetMapping("/posts") + @Operation( + summary = "매칭 게시판 전체 조회", + description = "매칭 게시판의 전체 게시글을 조회합니다", + responses = { + @ApiResponse(responseCode = "200", description = "요청 성공"), + @ApiResponse(responseCode = "403", description = "인증 문제 발생"), + @ApiResponse(responseCode = "500", description = "관리자 문의") + }) + public MatchingPostPagingResponseDto getAllMatchingPosts(MatchingPostPagingRequestDto matchingPostPagingRequestDto) { + return matchingBoardService.findAllPosts(matchingPostPagingRequestDto); + } } \ No newline at end of file From b211324b3d97dcbab75b6d2368c2386ba40da976 Mon Sep 17 00:00:00 2001 From: dongkyunKim Date: Tue, 13 Feb 2024 02:21:05 +0900 Subject: [PATCH 2/2] test() : deploy test --- Titto_Backend/.DS_Store | Bin 8196 -> 8196 bytes Titto_Backend/appspec.yml | 23 ----------------------- Titto_Backend/scripts/.DS_Store | Bin 6148 -> 0 bytes Titto_Backend/scripts/start.sh | 22 ---------------------- Titto_Backend/scripts/stop.sh | 19 ------------------- 5 files changed, 64 deletions(-) delete mode 100644 Titto_Backend/appspec.yml delete mode 100644 Titto_Backend/scripts/.DS_Store delete mode 100644 Titto_Backend/scripts/start.sh delete mode 100644 Titto_Backend/scripts/stop.sh diff --git a/Titto_Backend/.DS_Store b/Titto_Backend/.DS_Store index 2e6ebce145395008e9af4b54d99d5d873c69660a..dad031b35fb71a2d56a9bfd3e255643eed3d3508 100644 GIT binary patch delta 53 zcmZp1XmOa}&nU7nU^hRb$YvgaeT@N42cW{Kv)dKsSL>sdJL5exePg;Ir+&+Ir&Kp z3=9H5?8v~t$hUdFU^25UJ5XsdLlHwJP(ukrF{(mFS&+j2U;xy{z<{QDa-eV{o2jXe zf~o1`8^R9tXwn5GNj{~;B}G7u&J4jomlOl7NCmn_pCODPpCN~#6v$2mit01C0Nq^z z#QF@OKz=IFK_Jl-psGBEbcSr8-cle7q%I%mT!_9rkb{9@B|yiQ0AYR(gA;=*P#^>* zzz`1E&X+&^6da{wLP5bqYIX6xn?JIjn=@n`I?z#E=#xBcU!`gFp$9XUHZ;Fa;n z-)#F0*X+e^=!;J`j(`iV@9}c7`r}8nQxv3t6p#W^Knh5KRDeC(th)?Ulmb#f3LF)% z|3jr4w!|UOe;o{Ve7E(Pp&7@1mmt=hx5OckE3^_+Vo*z7F-p*xuUXd;hrpnt_|AMz z?p*SQQhayjtCyp+Kt(Aa1;z@T$8>J}e@*}8{y!#ZCIzIxzfz#gR(Go45LE;C)SFuzSUJ5v#uo$flg=M=|mj_Oc$9H_zMLN@P{Xs diff --git a/Titto_Backend/scripts/start.sh b/Titto_Backend/scripts/start.sh deleted file mode 100644 index ba057ec..0000000 --- a/Titto_Backend/scripts/start.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -PROJECT_ROOT="/home/ubuntu/app" -JAR_FILE="/home/ubuntu/Titto_Backend-0.0.1-SNAPSHOT.jar" - -APP_LOG="$PROJECT_ROOT/application.log" -ERROR_LOG="$PROJECT_ROOT/error.log" -DEPLOY_LOG="$PROJECT_ROOT/deploy.log" - -TIME_NOW=$(date +%c) - -# build 파일 복사 -echo "$TIME_NOW > $JAR_FILE 파일 복사" >> $DEPLOY_LOG -cp $PROJECT_ROOT/Titto_Backend/build/libs/*.jar /home/ubuntu - -# jar 파일 실행 -echo "$TIME_NOW > $JAR_FILE 파일 실행" >> $DEPLOY_LOG -cd /home/ubuntu -nohup java -jar $JAR_FILE > /dev/null 2> /dev/null < /dev/null & - -CURRENT_PID=$(pgrep -f $JAR_FILE) -echo "$TIME_NOW > 실행된 프로세스 아이디 $CURRENT_PID 입니다." >> $DEPLOY_LOG diff --git a/Titto_Backend/scripts/stop.sh b/Titto_Backend/scripts/stop.sh deleted file mode 100644 index f2382f6..0000000 --- a/Titto_Backend/scripts/stop.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -PROJECT_ROOT="/home/ubuntu/app" -JAR_FILE="/home/ubuntu/Titto_Backend-0.0.1-SNAPSHOT.jar" - -DEPLOY_LOG="$PROJECT_ROOT/deploy.log" - -TIME_NOW=$(date +%c) - -# 현재 구동 중인 애플리케이션 pid 확인 -CURRENT_PID=$(pgrep -f $JAR_FILE) - -# 프로세스가 켜져 있으면 종료 -if [ -z $CURRENT_PID ]; then - echo "$TIME_NOW > 현재 실행중인 애플리케이션이 없습니다" >> $DEPLOY_LOG -else - echo "$TIME_NOW > 실행중인 $CURRENT_PID 애플리케이션 종료 " >> $DEPLOY_LOG - kill -15 $CURRENT_PID -fi \ No newline at end of file