From 8439e762a6d631ba928f0e44a124e0338ac673eb Mon Sep 17 00:00:00 2001 From: DongkyunKim <134477764+dongkyun0713@users.noreply.github.com> Date: Fri, 19 Jul 2024 00:14:47 +0900 Subject: [PATCH] =?UTF-8?q?Refactor(#14):=20nginx=20=EB=A6=AC=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=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_production.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy_production.yml b/.github/workflows/deploy_production.yml index aa51801f..37133e27 100644 --- a/.github/workflows/deploy_production.yml +++ b/.github/workflows/deploy_production.yml @@ -62,10 +62,12 @@ jobs: sleep 10 sudo docker stop ${{ env.CONTAINER_NAME_BLUE }} sudo docker rm ${{ env.CONTAINER_NAME_BLUE }} + sudo systemctl reload nginx else sudo docker pull ${{ env.DOCKER_IMAGE_NAME }} sudo docker run --name ${{ env.CONTAINER_NAME_BLUE }} -d -p ${{ env.BLUE_PORT }}:${{ env.BLUE_PORT }} -e TZ=Asia/Seoul ${{ env.DOCKER_IMAGE_NAME }} sleep 10 sudo docker stop ${{ env.CONTAINER_NAME_GREEN }} sudo docker rm ${{ env.CONTAINER_NAME_GREEN }} + sudo systemctl reload nginx fi