feat: Load system properties

This commit is contained in:
oSumAtrIX 2024-01-31 22:27:31 +01:00
parent 673efc8038
commit e373d26998
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -26,7 +26,10 @@ fun Application.configureDependencies() {
val globalModule = module { val globalModule = module {
single { single {
Dotenv.load() Dotenv.configure()
.ignoreIfMissing()
.systemProperties()
.load()
} }
single { single {
val configFilePath = get<Dotenv>()["CONFIG_FILE_PATH"] val configFilePath = get<Dotenv>()["CONFIG_FILE_PATH"]