diff --git a/WebServiceBySpringBootAndAWS/scripts/deploy.sh b/WebServiceBySpringBootAndAWS/scripts/deploy.sh index a12668c..aa08014 100644 --- a/WebServiceBySpringBootAndAWS/scripts/deploy.sh +++ b/WebServiceBySpringBootAndAWS/scripts/deploy.sh @@ -9,7 +9,7 @@ cp $REPOSITORY/zip/*.jar $REPOSITORY/ echo "> 현재 구동 중인 애플리케이션 pid 확인" -CURRENT_PID=$(pgrep -fl springboot2-webservice | grep jar | awk '{print $1}') +CURRENT_PID=$(pgrep -fl $PROJECT_NAME | grep jar | awk '{print $1}') echo "현재 구동 중인 애플리케이션 pid : $CURRENT_PID" @@ -23,7 +23,7 @@ fi echo "> 새 애플리케이션 배포" -JAR_NAME=$(ls -tr $REPOSITORY/*.jar | tall -n 1) +JAR_NAME=$(ls -tr $REPOSITORY/*.jar | tail -n 1) echo "> JAR_NAME 에 실행권한 추가" diff --git a/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter9.md b/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter9.md index dfd96a0..881e03f 100644 --- a/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter9.md +++ b/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter9.md @@ -558,7 +558,7 @@ notifications: > >echo "> 현재 구동 중인 애플리케이션 pid 확인" > ->CURRENT_PID=\$(pgrep -fl springboot2-webservice | grep jar | awk '{print $1}') // ① +>CURRENT_PID=\$(pgrep -fl \$PROJECT_NAME | grep jar | awk '{print $1}') // ① > >echo "현재 구동 중인 애플리케이션 pid : $CURRENT_PID" >