From 4e43d335df91ed86895e29e394381b329b1f81e9 Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Mon, 16 Mar 2020 16:49:38 +0100 Subject: [PATCH] Fix envvar --- src/main/kotlin/nl/voidcorp/watchtower/Main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/nl/voidcorp/watchtower/Main.kt b/src/main/kotlin/nl/voidcorp/watchtower/Main.kt index a71b8a5..fb15091 100644 --- a/src/main/kotlin/nl/voidcorp/watchtower/Main.kt +++ b/src/main/kotlin/nl/voidcorp/watchtower/Main.kt @@ -19,7 +19,7 @@ import java.time.Instant fun main() { val token: String = System.getenv("DISCORD_TOKEN") ?: throw RuntimeException("Missing DISCORD_TOKEN in env!") Database.connect( - System.getenv("JDBC_URl") ?: "jdbc:sqlite:test.db", + System.getenv("JDBC_URL") ?: "jdbc:sqlite:test.db", System.getenv("JDBC_DRIVER") ?: "org.sqlite.JDBC" ) TransactionManager.manager.defaultIsolationLevel = Connection.TRANSACTION_SERIALIZABLE