diff --git a/Cargo.lock b/Cargo.lock index 684145123..5531a6482 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4262,7 +4262,7 @@ dependencies = [ [[package]] name = "server" -version = "0.4.83" +version = "0.4.84" dependencies = [ "ahash 0.8.11", "anyhow", diff --git a/server/Cargo.toml b/server/Cargo.toml index 5a64a87a3..44dbde794 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "server" -version = "0.4.83" +version = "0.4.84" edition = "2021" build = "src/build.rs" diff --git a/server/src/main.rs b/server/src/main.rs index 3b2ee7ed0..65bd92ec8 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -32,7 +32,11 @@ async fn main() -> Result<(), ServerError> { let figure = standard_font.convert("Iggy Server"); println!("{}", figure.unwrap()); - if let Ok(path) = dotenv() { + if let Ok(env_path) = std::env::var("IGGY_ENV_PATH") { + if dotenvy::from_path(&env_path).is_ok() { + println!("Loaded environment variables from path: {env_path}"); + } + } else if let Ok(path) = dotenv() { println!( "Loaded environment variables from .env file at path: {}", path.display()