Skip to content

Commit e99b0ff

Browse files
committed
fix: prod 배포 스크립트 수정
1 parent a6126f8 commit e99b0ff

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

.ebextensions/00-makeFiles.config

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

10-
if pgrep java > /dev/null; then
11-
killall java
12-
sleep 5 # 프로세스가 완전히 종료될 때까지 대기
13-
fi
14-
15-
# 백그라운드에서 애플리케이션 실행
16-
nohup java -Dfile.encoding=UTF-8 -jar $JAR_PATH > /var/log/web.log 2>&1 &
10+
# run app
11+
killall java
12+
java -Dfile.encoding=UTF-8 -Dspring.profiles.active=dev -jar $JAR_PATH

.github/workflows/prod-server-deployer.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,6 @@ jobs:
1717
with:
1818
java-version: 17
1919

20-
- name: Set yaml file
21-
uses: microsoft/variable-substitution@v1
22-
with:
23-
files: ./src/main/resources/application.yml
24-
env:
25-
spring.datasource.url: ${{secrets.DB_URL}}
26-
spring.datasource.username: ${{secrets.DB_USERNAME}}
27-
spring.datasource.password: ${{secrets.DB_PASSWORD}}
28-
spring.s3.bucket: ${{secrets.BUCKET_NAME}}
29-
sprig.s3.access-key: ${{secrets.AWS_ACCESS_KEY_ID}}
30-
sprig.s3.secret-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
31-
cloud.aws.region.static: ${{secrets.AWS_DEFAULT_REGION}}
32-
jwt.secret: ${{secrets.JWT_SECRET}}
33-
3420
- name: Grant execute permission for gradlew
3521
run: chmod +x ./gradlew
3622
shell: bash

0 commit comments

Comments
 (0)