Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
nohup java 
명령어 수정
  • Loading branch information
dlehdwo authored Nov 3, 2024
1 parent 10ecca7 commit 3fff21f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
scp -o StrictHostKeyChecking=no -r build/libs/*.jar ${{ secrets.AWS_EC2_USER }}@${{ secrets.AWS_EC2_HOST }}:~/app/app.jar
# 환경 변수로 RDS 설정을 전달하며 애플리케이션 실행
nohup java -jar ~/app/app.jar \
--spring.datasource.url=jdbc:mysql://${RDS_HOST}:${RDS_PORT}/${RDS_DB_NAME} \
--spring.datasource.username=${RDS_USERNAME} \
--spring.datasource.password=${RDS_PASSWORD} > /dev/null 2>&1 &
nohup java -Xmx512m -jar ~/app/app.jar \
--spring.datasource.url=jdbc:mysql://${RDS_HOST}:${RDS_PORT}/${RDS_DB_NAME} \
--spring.datasource.username=${RDS_USERNAME} \
--spring.datasource.password=${RDS_PASSWORD} > /dev/null 2>&1 &

0 comments on commit 3fff21f

Please sign in to comment.