mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-30 06:34:36 +02:00
feat: Load system properties
This commit is contained in:
parent
673efc8038
commit
e373d26998
@ -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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user