Skip to content

Commit 82b62ea

Browse files
committed
fix: profile 활성화 prod 명시적 지정
1 parent eb433fd commit 82b62ea

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.ebextensions/00-makeFiles.config

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ files:
77
#!/usr/bin/env bash
88
JAR_PATH=/var/app/current/application.jar
99

10-
# run app
11-
killall java
12-
java -Dfile.encoding=UTF-8 -jar $JAR_PATH
10+
if pgrep java > /dev/null; then
11+
killall java
12+
sleep 5
13+
fi
14+
15+
java -Dfile.encoding=UTF-8 -Dspring.profiles.active=prod -jar $JAR_PATH > /var/log/web.log 2>&1 &

0 commit comments

Comments
 (0)