Skip to content

Commit 93a9b81

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.ebextensions/00-makeFiles.config

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ files:
77
#!/usr/bin/env bash
88
JAR_PATH=/var/app/current/application.jar
99

10+
# kill existing java process if running
1011
if pgrep java > /dev/null; then
1112
killall java
1213
sleep 5
1314
fi
1415

15-
java -Dfile.encoding=UTF-8 -Dspring.profiles.active=prod -jar $JAR_PATH > /var/log/web.log 2>&1 &
16+
# ensure directory exists
17+
mkdir -p /var/pids
18+
19+
# start application and save pid
20+
nohup java -Dfile.encoding=UTF-8 -Dspring.profiles.active=prod -jar $JAR_PATH > /var/log/web.log 2>&1 &
21+
echo $! > /var/pids/web.pid

0 commit comments

Comments
 (0)