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!";