From a21c7a8e32749514c93f28ba1d5f9362f078f663 Mon Sep 17 00:00:00 2001 From: JSoi Date: Wed, 27 Jul 2022 17:41:31 +0900 Subject: [PATCH] =?UTF-8?q?#42=20[Update]=20Health=20Check=20-=20=EA=B6=8C?= =?UTF-8?q?=ED=95=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/switch.sh | 2 +- src/main/java/com/mpnp/baechelin/util/Nginx.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/switch.sh b/scripts/switch.sh index 42fda85..5bee6b5 100644 --- a/scripts/switch.sh +++ b/scripts/switch.sh @@ -19,7 +19,7 @@ else fi # Change proxying port into target port -echo "set \$service_url http://127.0.0.1:${TARGET_PORT};" | tee /home/ubuntu/service_url.inc +echo "set \$service_url http://127.0.0.1:${TARGET_PORT};" | sudo tee /home/ubuntu/service_url.inc echo "> Now Nginx proxies to ${TARGET_PORT}." diff --git a/src/main/java/com/mpnp/baechelin/util/Nginx.java b/src/main/java/com/mpnp/baechelin/util/Nginx.java index 40aed98..99ae5cb 100644 --- a/src/main/java/com/mpnp/baechelin/util/Nginx.java +++ b/src/main/java/com/mpnp/baechelin/util/Nginx.java @@ -15,9 +15,9 @@ public class Nginx { @GetMapping("/health") public String healthCheck() { - return "Health Check V3"; + return "Health Check V4"; } - + @GetMapping public String main(){ return "Hello World!";