diff --git a/Cargo.toml b/Cargo.toml index 11e0637..ecf2f94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,6 +39,7 @@ tera = { version = "1", optional = true } chrono = { version = "0.4", optional = true } regex = "1.6" url = "2" +dotenvy = "0.15" [features] default = [] diff --git a/src/main.rs b/src/main.rs index 3d57dc2..c277efc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -772,6 +772,7 @@ async fn run(config: Config) -> Result<(), AnyError> { fn main() { let begin = Instant::now(); + dotenvy::dotenv().ok(); setup_logger();