Fix .env loading for standalone repo structure
This commit is contained in:
+1
-5
@@ -2344,11 +2344,7 @@ fn load_root_env() {
|
||||
env::current_dir()
|
||||
.ok()
|
||||
.and_then(|path| path.parent().map(|parent| parent.join(".env"))),
|
||||
Some(
|
||||
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("..")
|
||||
.join(".env"),
|
||||
),
|
||||
Some(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(".env")),
|
||||
];
|
||||
|
||||
for candidate in candidates.into_iter().flatten() {
|
||||
|
||||
Reference in New Issue
Block a user