From 0e03712e6145526a18fc428215b4d6232b1aa81b Mon Sep 17 00:00:00 2001 From: continuist Date: Mon, 16 Jun 2025 20:05:53 -0400 Subject: [PATCH] Use correct confg file --- backend/crates/sharenet-cli-postgres/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/crates/sharenet-cli-postgres/src/main.rs b/backend/crates/sharenet-cli-postgres/src/main.rs index 7f28e41..3e275cf 100644 --- a/backend/crates/sharenet-cli-postgres/src/main.rs +++ b/backend/crates/sharenet-cli-postgres/src/main.rs @@ -5,7 +5,7 @@ use cli::Cli; #[tokio::main] async fn main() -> Result<()> { - dotenvy::dotenv().ok(); + dotenvy::from_path("config/cli-postgres.env").ok(); let pool = sqlx::PgPool::connect(&std::env::var("DATABASE_URL")?).await?; let user_service = PostgresUserService::new(postgres::PostgresUserRepository::new(pool.clone())); let product_service = PostgresProductService::new(postgres::PostgresProductRepository::new(pool));