Skip to content

Commit

Permalink
fix: profile 활성화 prod 명시적 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Jan 20, 2025
1 parent eb433fd commit 82b62ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .ebextensions/00-makeFiles.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ 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

java -Dfile.encoding=UTF-8 -Dspring.profiles.active=prod -jar $JAR_PATH > /var/log/web.log 2>&1 &

0 comments on commit 82b62ea

Please sign in to comment.