Skip to content

Commit

Permalink
πŸ› bug: RDS ν™˜κ²½λ³€μˆ˜ κ°’ μ„€μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunho12 committed Jan 23, 2025
1 parent bb92f1e commit b60ca88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:

- name: Make application.properties # application.properties 파일 생성
run: |
cd ./project/src/main/resources
echo "${{ secrets.APPLICATION_PROPERTIES }}" > ./application.properties
echo "spring.datasource.url=${{ secrets.RDS_URL }}" > ./project/src/main/resources/application.properties
echo "spring.datasource.username=${{ secrets.RDS_USERNAME }}" >> ./project/src/main/resources/application.properties
echo "spring.datasource.password=${{ secrets.RDS_PASSWORD }}" >> ./project/src/main/resources/application.properties
echo "spring.jpa.hibernate.ddl-auto=update" >> ./project/src/main/resources/application.properties
shell: bash

- name: Grant execute permission for gradlew # gradlew μ‹€ν–‰ κΆŒν•œ λΆ€μ—¬
Expand All @@ -36,7 +38,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Edison-Server
path: build/libs/*.jar
path: project/build/libs/*.jar

deploy:
needs: build # build μž‘μ—…μ΄ μ„±κ³΅μ μœΌλ‘œ μ™„λ£Œλœ ν›„ μ‹€ν–‰
Expand Down
10 changes: 4 additions & 6 deletions project/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
spring.application.name=project

# MySQL Database Connection
spring.datasource.url=jdbc:mysql://localhost:3306/edison_db?useSSL=false&serverTimezone=Asia/Seoul
spring.datasource.url=${RDS_URL}
spring.datasource.username=${RDS_USERNAME}
spring.datasource.password=${RDS_PASSWORD}

spring.datasource.username=root
spring.datasource.password=${DB_password}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# Hibernate Configuration
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
spring.jpa.properties.hibernate.format_sql=true

spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect

# JPA Console Log
logging.level.org.hibernate.SQL=DEBUG
Expand Down

0 comments on commit b60ca88

Please sign in to comment.