Skip to content

Commit

Permalink
fix: use dotenvy instead of dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
koskeller committed Jun 1, 2024
1 parent 50ec782 commit 5798476
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 39 deletions.
84 changes: 47 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tokio::net::TcpListener;
async fn main() {
// Loads the .env file located in the environment's current directory or its parents in sequence.
// .env used only for development, so we discard error in all other cases.
dotenv::dotenv().ok();
dotenvy::dotenv().ok();

// Tries to load tracing config from environment (RUST_LOG) or uses "debug".
telemetry::setup_tracing();
Expand Down
2 changes: 1 addition & 1 deletion tests/api/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl TestApp {
pub async fn new() -> Self {
// Loads the .env file located in the environment's current directory or its parents in sequence.
// .env used only for development, so we discard error in all other cases.
dotenv::dotenv().ok();
dotenvy::dotenv().ok();

// Set port to 0 so tests can spawn multiple servers on OS assigned ports.
std::env::set_var("PORT", "0");
Expand Down

0 comments on commit 5798476

Please sign in to comment.