From fcbe9d04af7c586c32f2561ea8ae44cca76d64bb Mon Sep 17 00:00:00 2001 From: pandahwang Date: Sun, 6 Oct 2024 21:09:29 +0900 Subject: [PATCH] =?UTF-8?q?add:=20deploy.yml=20=EB=8F=84=EC=BB=A4=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=EB=AC=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e0a1706..77d90c2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,4 +26,7 @@ jobs: echo "$APPLICATION_PROPERTIES" > src/main/resources/application.properties ./gradlew clean build sudo fuser -k -n tcp 8080 || true - nohup java -jar build/libs/*SNAPSHOT.jar > ./output.log 2>&1 & \ No newline at end of file + # 도커로 빌드한 이미지를 실행 + docker compose -f compose-prod.yml up --build -d + # 백그라운드로 서버 실행 + # nohup java -jar build/libs/*SNAPSHOT.jar > ./output.log 2>&1 &