Skip to content

Commit

Permalink
fix: .ebextension 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Jan 20, 2025
1 parent 6c12b96 commit a6126f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .ebextensions/00-makeFiles.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ files:
#!/usr/bin/env bash
JAR_PATH=/var/app/current/application.jar

# run app
killall java
java -Dfile.encoding=UTF-8 -jar $JAR_PATH
if pgrep java > /dev/null; then
killall java
sleep 5 # 프로세스가 완전히 종료될 때까지 대기
fi

# 백그라운드에서 애플리케이션 실행
nohup java -Dfile.encoding=UTF-8 -jar $JAR_PATH > /var/log/web.log 2>&1 &

0 comments on commit a6126f8

Please sign in to comment.