Skip to content

Commit

Permalink
🔐 feat: add application-db.properties with ENV (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Oct 2, 2023
1 parent 89ded60 commit 1e369af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ out/
/.nb-gradle/

### VS Code ###
.vscode/

application-db.properties
.vscode/
11 changes: 11 additions & 0 deletions src/main/resources/application-db.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=create

# Remote DB
spring.datasource.url=${DB_ENDPOINT}
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}

spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.jpa.properties.hibernate.format_sql=true

0 comments on commit 1e369af

Please sign in to comment.