Skip to content

Commit

Permalink
무중단 배포 구현...5 #9
Browse files Browse the repository at this point in the history
- 로그인@@ -> 로그인
- 8081 포트 -> 8082
  • Loading branch information
Sean-creative committed Nov 9, 2023
1 parent f0256d5 commit 5e43f44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/run_new_was.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
fi

# 현재 포트의 PID를 불러온다
TARGET_PID=$(lsof -Fp -i TCP:${TARGET_PORT} | grep -Po 'p[0-9]+' | grep -Po '[0-9]+')
TARGET_PID=$(sudo lsof -Fp -i TCP:${TARGET_PORT} | grep -Po 'p[0-9]+' | grep -Po '[0-9]+')

# PID를 이용해 해당 포트 서버 Kill
if [ ! -z ${TARGET_PID} ]; then
Expand All @@ -37,8 +37,8 @@ fi
echo "[$NOW] $JAR 복사" >> $START_LOG
cp $ROOT_PATH/build/libs/*.jar $JAR

iptables -A PREROUTING -t nat -i eth0 -p tcp -m tcp --dport 81 -j REDIRECT --to-port 8081
iptables -A PREROUTING -t nat -i eth0 -p tcp -m tcp --dport 82 -j REDIRECT --to-port 8082
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp -m tcp --dport 81 -j REDIRECT --to-port 8081
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp -m tcp --dport 82 -j REDIRECT --to-port 8082

# 타켓 포트에 jar파일을 이용해 새로운 서버 실행
echo "[$NOW] > $JAR 실행 $TARGET_PORT Port" >> $START_LOG
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/member/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>
<body>
<h1>
🔑 로그인@@ z
🔑 로그인
</h1>
<p class="loginGuide">
최초 로그인 시에는 휴대폰번호 인증이 필요합니다.
Expand Down

0 comments on commit 5e43f44

Please sign in to comment.