chore: Update application properties and add production configuration

pull/1/head
Lunix-420 2024-10-28 12:28:39 +01:00
parent 3ac4042b2a
commit 3f15379653
3 changed files with 35 additions and 1 deletions

View File

@ -1 +0,0 @@
spring.application.name=backend

View File

@ -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

View File

@ -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