Skip to content

Commit 36a7541

Browse files
Used DB Properties
1 parent 99796b0 commit 36a7541

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
spring.application.name=bookstore
2-
spring.datasource.url=jdbc:mysql://localhost:3306/bookstore_db
3-
spring.datasource.username=root
4-
spring.datasource.password=NewStrongPassword
2+
spring.datasource.url=${DB_URL}
3+
spring.datasource.username=${DB_USER}
4+
spring.datasource.password=${DB_PASS}
5+
server.port=${PORT:8080}
6+
57
spring.jpa.hibernate.ddl-auto=update
68
spring.jpa.show-sql=true
79
spring.thymeleaf.cache=false
810
server.port=8080
9-
10-
# Added this line to support Render's dynamic port
11-
server.port=${PORT:8080}

0 commit comments

Comments
 (0)