Skip to content

Commit

Permalink
#12 Fix: add log files
Browse files Browse the repository at this point in the history
  • Loading branch information
5jisoo authored Nov 22, 2023
1 parent b207fcb commit 321af1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ REPOSITORY=/home/ubuntu/unibond/unibond
cd $REPOSITORY

APP_NAME=unibond

APP_LOG=/home/ubuntu/unibond/application.log
ERROR_LOG=/home/ubuntu/unibond/application.log
DEPLOY_LOG=/home/ubuntu/unibond/application.log

JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1)
JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME

Expand All @@ -19,4 +24,4 @@ else
fi

echo "> Deploy - $JAR_PATH "
nohup java -jar $JAR_PATH > /dev/null 2> /dev/null < /dev/null &
nohup java -jar $JAR_PATH --logging.level.org.hibernate.SQL=DEBUG > $APP_LOG 2>$ERROR_LOG &

0 comments on commit 321af1b

Please sign in to comment.