Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
essential2189 authored Feb 4, 2024
1 parent d526ef6 commit 374a93f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 374a93f

Please sign in to comment.