File tree Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Original file line number Diff line number Diff line change 7
7
#!/usr/bin/env bash
8
8
JAR_PATH=/var/app/current/application.jar
9
9
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
Original file line number Diff line number Diff line change 17
17
with :
18
18
java-version : 17
19
19
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
-
34
20
- name : Grant execute permission for gradlew
35
21
run : chmod +x ./gradlew
36
22
shell : bash
You can’t perform that action at this time.
0 commit comments