🐛 fix(config): resolve credential file path issue
- fix the problem of reading credential file in the production environment - use config_root to find credential file
This commit is contained in:
committed by
Jeremiah Russell
parent
b17e72e6f3
commit
1ae34efb93
@@ -40,7 +40,9 @@ impl ClientConfig {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let credential_file = configs.get_string("credential_file")?;
|
let credential_file = configs.get_string("credential_file")?;
|
||||||
let path = PathBuf::from(root).join(credential_file);
|
log::info!("root: {config_root}");
|
||||||
|
let path = PathBuf::from(config_root.to_string()).join(credential_file);
|
||||||
|
log::info!("path: {}", path.display());
|
||||||
let json_str = fs::read_to_string(path).expect("could not read path");
|
let json_str = fs::read_to_string(path).expect("could not read path");
|
||||||
|
|
||||||
let console: ConsoleApplicationSecret =
|
let console: ConsoleApplicationSecret =
|
||||||
|
|||||||
Reference in New Issue
Block a user