Skip to content

Commit

Permalink
⚡️: fix 애플리케이션 실행 로그 남기도록 수정 #49
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Dec 6, 2023
1 parent ab2bc76 commit 46d9a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run_new_was.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ if [ ! -z ${TARGET_PID} ]; then
fi

if [ ${HOST_NAME} == "core-prod-server" ]; then
nohup java -jar -Dserver.port=${TARGET_PORT} -Duser.timezone=Asia/Seoul -Dspring.profiles.active=prod /home/ubuntu/api-server/*.jar
nohup java -jar -Dserver.port=${TARGET_PORT} -Duser.timezone=Asia/Seoul -Dspring.profiles.active=prod /home/ubuntu/api-server/*.jar >> /home/ubuntu/api-server/deploy.log 2>/home/ubuntu/api-server/deploy_err.log &
echo "[$NOW_TIME] Now new WAS runs at ${TARGET_PORT}."
exit 0
else
nohup java -jar -Dserver.port=${TARGET_PORT} -Duser.timezone=Asia/Seoul -Dspring.profiles.active=dev /home/ubuntu/api-server/*.jar
nohup java -jar -Dserver.port=${TARGET_PORT} -Duser.timezone=Asia/Seoul -Dspring.profiles.active=dev /home/ubuntu/api-server/*.jar >> /home/ubuntu/api-server/deploy.log 2>/home/ubuntu/api-server/deploy_err.log &
echo "[$NOW_TIME] Now new WAS runs at ${TARGET_PORT}."
exit 0
fi

0 comments on commit 46d9a56

Please sign in to comment.