Skip to content

Commit

Permalink
chore: 배포 스크립트 수정 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushedrumex authored Feb 16, 2024
1 parent a875e92 commit 42928ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ PROJECT_NAME=indp-server
APPLICATION_NAME=indp

DEPLOY_PATH=$PROJECT_ROOT/deploy

APP_LOG=$DEPLOY_PATH/application.log
ERROR_LOG=$DEPLOY_PATH/deploy-error.log
DEPLOY_LOG=$DEPLOY_PATH/deploy.log

mkdir $DEPLOY_PATH
Expand All @@ -23,7 +26,8 @@ else
fi

echo "✅ 새 어플리케이션 배포" >> $DEPLOY_LOG

JAR_NAME=$(ls -tr "$DEPLOY_PATH" | grep jar | tail -n 1)

echo "✅ JAR Name: $JAR_NAME" >> $DEPLOY_LOG
nohup java -jar $DEPLOY_PATH/$JAR_NAME --spring.profiles.active=dev > $DEPLOY_LOG 2>&1 &
nohup java -jar $DEPLOY_PATH/$JAR_NAME --spring.profiles.active=dev > $APP_LOG 2> $ERROR_LOG &

0 comments on commit 42928ca

Please sign in to comment.