From eae7ff34461b8f9b4dc5ce26b023b348ac9cf7cb Mon Sep 17 00:00:00 2001 From: elive7 Date: Mon, 1 Dec 2025 00:18:56 +0900 Subject: [PATCH 1/4] =?UTF-8?q?settings:=20nginx=20=EB=AA=85=EB=A0=B9=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy-dev.sh | 4 ++-- scripts/deploy-prod.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deploy-dev.sh b/scripts/deploy-dev.sh index 521ac5f5..160615ef 100644 --- a/scripts/deploy-dev.sh +++ b/scripts/deploy-dev.sh @@ -34,7 +34,7 @@ if [ -z "$IS_GREEN_EXIST" ];then sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - sudo nginx -s reload + sudo -n nginx -s reload echo ">>> down blue container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop blue @@ -63,7 +63,7 @@ else sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - sudo nginx -s reload + sudo -n nginx -s reload echo ">>> down green container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop green diff --git a/scripts/deploy-prod.sh b/scripts/deploy-prod.sh index 27c17227..fc3b3fde 100644 --- a/scripts/deploy-prod.sh +++ b/scripts/deploy-prod.sh @@ -32,7 +32,7 @@ if [ -z "$IS_GREEN_EXIST" ];then sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - sudo nginx -s reload + sudo -n nginx -s reload echo ">>> down blue container" docker compose stop blue docker image prune -f @@ -58,7 +58,7 @@ else sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - sudo nginx -s reload + sudo -n nginx -s reload echo ">>> down green container" docker compose stop green docker image prune -f From 97898784bf6dcae0a57f3da080ab1610943030fa Mon Sep 17 00:00:00 2001 From: elive7 Date: Mon, 1 Dec 2025 01:00:05 +0900 Subject: [PATCH 2/4] =?UTF-8?q?settings=20:=20nginx=20=EB=AA=85=EB=A0=B9?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy-dev.sh | 4 ++-- scripts/deploy-prod.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deploy-dev.sh b/scripts/deploy-dev.sh index 160615ef..87828038 100644 --- a/scripts/deploy-dev.sh +++ b/scripts/deploy-dev.sh @@ -34,7 +34,7 @@ if [ -z "$IS_GREEN_EXIST" ];then sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - sudo -n nginx -s reload + sudo /usr/sbin/nginx -s reload echo ">>> down blue container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop blue @@ -63,7 +63,7 @@ else sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - sudo -n nginx -s reload + sudo /usr/sbin/nginx -s reload echo ">>> down green container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop green diff --git a/scripts/deploy-prod.sh b/scripts/deploy-prod.sh index fc3b3fde..d5c0225c 100644 --- a/scripts/deploy-prod.sh +++ b/scripts/deploy-prod.sh @@ -32,7 +32,7 @@ if [ -z "$IS_GREEN_EXIST" ];then sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - sudo -n nginx -s reload + sudo /usr/sbin/nginx -s reload echo ">>> down blue container" docker compose stop blue docker image prune -f @@ -58,7 +58,7 @@ else sleep 3 echo ">>> reload nginx" sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - sudo -n nginx -s reload + sudo /usr/sbin/nginx -s reload echo ">>> down green container" docker compose stop green docker image prune -f From 81316422dc5f3735fb6359e15d054ae64d638e62 Mon Sep 17 00:00:00 2001 From: elive7 Date: Mon, 1 Dec 2025 01:34:13 +0900 Subject: [PATCH 3/4] =?UTF-8?q?settings:=20sudo=20=EB=AA=85=EB=A0=B9=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy-dev.sh | 8 ++++---- scripts/deploy-prod.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/deploy-dev.sh b/scripts/deploy-dev.sh index 87828038..7e8b06c7 100644 --- a/scripts/deploy-dev.sh +++ b/scripts/deploy-dev.sh @@ -33,8 +33,8 @@ if [ -z "$IS_GREEN_EXIST" ];then done; sleep 3 echo ">>> reload nginx" - sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - sudo /usr/sbin/nginx -s reload + cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc + nginx -s reload echo ">>> down blue container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop blue @@ -62,8 +62,8 @@ else done; sleep 3 echo ">>> reload nginx" - sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - sudo /usr/sbin/nginx -s reload + cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc + nginx -s reload echo ">>> down green container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop green diff --git a/scripts/deploy-prod.sh b/scripts/deploy-prod.sh index d5c0225c..d961d127 100644 --- a/scripts/deploy-prod.sh +++ b/scripts/deploy-prod.sh @@ -31,8 +31,8 @@ if [ -z "$IS_GREEN_EXIST" ];then done; sleep 3 echo ">>> reload nginx" - sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - sudo /usr/sbin/nginx -s reload + cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc + /usr/sbin/nginx -s reload echo ">>> down blue container" docker compose stop blue docker image prune -f @@ -57,8 +57,8 @@ else done; sleep 3 echo ">>> reload nginx" - sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - sudo /usr/sbin/nginx -s reload + cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc + nginx -s reload echo ">>> down green container" docker compose stop green docker image prune -f From c69d7ec41fab9faf71ffb27d76aedceb6c426123 Mon Sep 17 00:00:00 2001 From: elive7 Date: Mon, 1 Dec 2025 02:19:12 +0900 Subject: [PATCH 4/4] =?UTF-8?q?Revert=20"settings:=20sudo=20=EB=AA=85?= =?UTF-8?q?=EB=A0=B9=20=EC=A0=9C=EA=B1=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 81316422dc5f3735fb6359e15d054ae64d638e62. --- scripts/deploy-dev.sh | 8 ++++---- scripts/deploy-prod.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/deploy-dev.sh b/scripts/deploy-dev.sh index 7e8b06c7..87828038 100644 --- a/scripts/deploy-dev.sh +++ b/scripts/deploy-dev.sh @@ -33,8 +33,8 @@ if [ -z "$IS_GREEN_EXIST" ];then done; sleep 3 echo ">>> reload nginx" - cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - nginx -s reload + sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc + sudo /usr/sbin/nginx -s reload echo ">>> down blue container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop blue @@ -62,8 +62,8 @@ else done; sleep 3 echo ">>> reload nginx" - cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - nginx -s reload + sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc + sudo /usr/sbin/nginx -s reload echo ">>> down green container" docker compose -f /home/ubuntu/docker-compose-dev.yml stop green diff --git a/scripts/deploy-prod.sh b/scripts/deploy-prod.sh index d961d127..d5c0225c 100644 --- a/scripts/deploy-prod.sh +++ b/scripts/deploy-prod.sh @@ -31,8 +31,8 @@ if [ -z "$IS_GREEN_EXIST" ];then done; sleep 3 echo ">>> reload nginx" - cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc - /usr/sbin/nginx -s reload + sudo cp /etc/nginx/conf.d/green-url.inc /etc/nginx/conf.d/service-url.inc + sudo /usr/sbin/nginx -s reload echo ">>> down blue container" docker compose stop blue docker image prune -f @@ -57,8 +57,8 @@ else done; sleep 3 echo ">>> reload nginx" - cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc - nginx -s reload + sudo cp /etc/nginx/conf.d/blue-url.inc /etc/nginx/conf.d/service-url.inc + sudo /usr/sbin/nginx -s reload echo ">>> down green container" docker compose stop green docker image prune -f