From e04ad483aedc0e4742ffe01a5484a7597c60df3a Mon Sep 17 00:00:00 2001 From: leedy3838 Date: Sun, 1 Sep 2024 16:08:10 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20nginx=20=EC=84=A4=EC=A0=95=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/prod-cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prod-cicd.yml b/.github/workflows/prod-cicd.yml index bb584c7..c4d1c45 100644 --- a/.github/workflows/prod-cicd.yml +++ b/.github/workflows/prod-cicd.yml @@ -100,7 +100,7 @@ jobs: key: ${{ secrets.EC2_SSH_KEY }} script_stop: true script: | - sudo docker exec -i nginxserver bash -c 'echo "set \$service_url ${{ env.TARGET_UPSTREAM }};" > /etc/nginx/conf.d/service-env.inc && sudo nginx -s reload' + sudo docker exec -i nginxserver bash -c 'echo "set \$service_url ${{ env.TARGET_UPSTREAM }};" > /etc/nginx/conf.d/service-env.inc && service nginx reload' - name: Stop current server uses: appleboy/ssh-action@master