From 0836830df2be3d367856adacec40cb3296b38187 Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Wed, 12 Feb 2025 11:35:57 +0100 Subject: [PATCH] refactor: Add default value to db host --- backend/src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 713c7ff..d668f7a 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -1,4 +1,4 @@ -spring.datasource.url=jdbc:postgresql://${DB_HOST}:5432/postgresdb +spring.datasource.url=jdbc:postgresql://${DB_HOST:-localhost}:5432/postgresdb spring.datasource.username=postgres_user spring.datasource.password=postgres_pass server.port=8080