- Add PostgreSQL datasource configuration for test and prod profiles - Use environment-specific database URL, username, and password variables - Set hibernate.ddl-auto=update for both profiles - Enable SQL logging in test, disable in production - Replace H2 in-memory database with PostgreSQL for consistency
13 lines
497 B
Properties
13 lines
497 B
Properties
api.baseUrl=https://testcf.hithomelabs.com
|
|
|
|
# Test Database Configuration - Same as Production
|
|
spring.datasource.url=${TEST_DB_URL:jdbc:postgresql://postgres:5432/cftunnel}
|
|
spring.datasource.username=${TEST_DB_USERNAME:postgres}
|
|
spring.datasource.password=${TEST_DB_PASSWORD}
|
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
|
|
|
# JPA Configuration
|
|
spring.jpa.hibernate.ddl-auto=update
|
|
spring.jpa.show-sql=true
|
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|