From 248d8819c8e9d98063fe967194cb69e6737d1013 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Wed, 17 Jan 2024 16:17:22 +0100 Subject: [PATCH] :sparkles: Get database host with sonar secret --- Sources/src/main/kotlin/allin/Application.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/src/main/kotlin/allin/Application.kt b/Sources/src/main/kotlin/allin/Application.kt index bd62889..e35782f 100644 --- a/Sources/src/main/kotlin/allin/Application.kt +++ b/Sources/src/main/kotlin/allin/Application.kt @@ -22,7 +22,7 @@ val db_user=System.getenv().get("POSTGRES_USER") val db_password=System.getenv().get("POSTGRES_PASSWORD") val db_host=System.getenv().get("POSTGRES_HOST") -val database = Database.connect("jdbc:postgresql://AllDev-postgresapi/$db_database", user = db_user, password = db_password) +val database = Database.connect("jdbc:postgresql://$db_host/$db_database", user = db_user, password = db_password) fun main() { embeddedServer(Netty, port = 8080, host = "0.0.0.0") {