Skip to content

Commit

Permalink
avniproject/avni-webapp#1337 | Use OPENCHS_DATABASE_HOST instead of O…
Browse files Browse the repository at this point in the history
…PENCHS_DATABASE_SERVER
  • Loading branch information
himeshr committed Dec 10, 2024
1 parent 74f5f2a commit 13058da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion avni-server-api/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ spring.profiles.active=${OPENCHS_MODE:dev}
# Database
avni.database=${OPENCHS_DATABASE:openchs}
avni.database.port=${OPENCHS_DATABASE_PORT:5432}
avni.database.server=${OPENCHS_DATABASE_SERVER:localhost}
avni.database.server=${OPENCHS_DATABASE_HOST:localhost}
spring.datasource.url=${OPENCHS_DATABASE_URL:jdbc:postgresql://${avni.database.server}:${avni.database.port}/${avni.database}?currentSchema=public}
spring.datasource.username=${OPENCHS_DATABASE_USER:openchs}
spring.datasource.password=${OPENCHS_DATABASE_PASSWORD:password}
Expand Down
2 changes: 1 addition & 1 deletion avni-server-api/src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spring.servlet.multipart.max-file-size=10028KB
spring.servlet.multipart.max-request-size=10028KB
avni.database=${OPENCHS_DATABASE:openchs}
avni.database.port=${OPENCHS_DATABASE_PORT:5432}
avni.database.server=${OPENCHS_DATABASE_SERVER:localhost}
avni.database.server=${OPENCHS_DATABASE_HOST:localhost}
spring.datasource.url=${OPENCHS_DATABASE_URL:jdbc:postgresql://${avni.database.server}:${avni.database.port}/openchs_test}
spring.datasource.username=${OPENCHS_DATABASE_USER:openchs}
spring.datasource.password=${OPENCHS_DATABASE_PASSWORD:password}
Expand Down

0 comments on commit 13058da

Please sign in to comment.