Browse Source

Change dotenvy to use explicit filename

Lee Morgan 2 months ago
parent
commit
3bee3f7fa1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -15,7 +15,7 @@ mod auth;
 #[actix_web::main]
 async fn main() -> Result<(), AppError> {
     //Environment variables
-    dotenvy::dotenv().expect("Failed to load .env file");
+    dotenvy::from_filename(".env").expect("Failed to load .env file");
 
     let database_url: String = env_var("DATABASE_URL");
     let port: u16 = env_var("PORT");