diff --git a/.ebextensions-dev/00-makeFiles.config b/.ebextensions-dev/00-makeFiles.config index 8030404..932a122 100644 --- a/.ebextensions-dev/00-makeFiles.config +++ b/.ebextensions-dev/00-makeFiles.config @@ -9,4 +9,4 @@ files: # run app killalljava - java -Dfile.encoding=UTF-8 -jar $JAR_PATH \ No newline at end of file + java -Dfile.encoding=UTF-8 -Dspring.profiles.active=dev -jar $JAR_PATH diff --git a/.github/workflows/dev_deploy.yml b/.github/workflows/dev_deploy.yml index 33d232c..7d2e35f 100644 --- a/.github/workflows/dev_deploy.yml +++ b/.github/workflows/dev_deploy.yml @@ -57,4 +57,5 @@ jobs: version_label: github-action-${{ steps.current-time.outputs.formattedTime }} region: ap-northeast-2 deployment_package: deploy/deploy.zip +# environment_variables: "SPRING_PROFILES_ACTIVE=dev" wait_for_deployment: false diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index cf882dc..cc63aa9 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,10 +1,13 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://release-umc.c1w882c2qqby.ap-northeast-2.rds.amazonaws.com:3306/umc?useSSL=false&serverTimezone=Asia/Seoul&characterEncoding=UTF-8 - username: - password: + url: ${AWS_DB_URL} + username: ${AWS_DB_USERNAME} + password: ${AWS_DB_PASSWORD} jpa: hibernate: - ddl-auto: create \ No newline at end of file + ddl-auto: create + + +