We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6a62e commit ca87634Copy full SHA for ca87634
backend/src/main.rs
@@ -11,7 +11,9 @@ mod routing;
11
#[tokio::main]
12
async fn main() -> Result<(), Box<dyn std::error::Error>> {
13
// Read dotenv if it exists
14
- dotenvy::dotenv()?;
+ if dotenvy::dotenv().is_ok() {
15
+ println!("Loaded an existing .env file.");
16
+ }
17
18
// Read environment variables
19
let env_vars = env::EnvVars::parse().process()?;
0 commit comments