chore: Update application properties and add production configuration
parent
3ac4042b2a
commit
3f15379653
|
@ -1 +0,0 @@
|
|||
spring.application.name=backend
|
|
@ -0,0 +1,21 @@
|
|||
spring:
|
||||
profiles:
|
||||
active: dev # Set 'dev' profile as the active profile for development
|
||||
|
||||
datasource:
|
||||
url: jdbc:h2:mem:testdb
|
||||
driver-class-name: org.h2.Driver
|
||||
username: sa
|
||||
password: password
|
||||
|
||||
h2:
|
||||
console:
|
||||
enabled: true # Enable H2 console for testing at http://localhost:8080/h2-console
|
||||
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update # Automatically create/update schema
|
||||
show-sql: true
|
||||
properties:
|
||||
hibernate:
|
||||
dialect: org.hibernate.dialect.H2Dialect
|
|
@ -0,0 +1,14 @@
|
|||
spring:
|
||||
datasource:
|
||||
url: jdbc:postgresql://<YOUR_PROD_DB_URL>:5432/<YOUR_DB_NAME>
|
||||
driver-class-name: org.postgresql.Driver
|
||||
username: <YOUR_DB_USERNAME>
|
||||
password: <YOUR_DB_PASSWORD>
|
||||
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
show-sql: false
|
||||
properties:
|
||||
hibernate:
|
||||
dialect: org.hibernate.dialect.PostgreSQLDialect
|
Loading…
Reference in New Issue