From 374a93f20a6d5de6b5ae667b1ae854c0a779d6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=99=95=EC=8A=B9=EC=9E=AC?= Date: Mon, 5 Feb 2024 00:27:33 +0900 Subject: [PATCH] Update start.sh --- scripts/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/start.sh b/scripts/start.sh index 01c584e..85c688d 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -16,5 +16,7 @@ cp $ROOT_PATH/build/libs/todaypopup-0.0.1.jar $JAR echo "[$NOW] > $JAR 실행" >> $START_LOG nohup java -jar -Dspring.profiles.active=$PROFILE $JAR > $APP_LOG 2> $ERROR_LOG & +sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 + SERVICE_PID=$(pgrep -f $JAR) echo "[$NOW] > 서비스 PID: $SERVICE_PID" >> $START_LOG