chore: fix APP_HOME with '.' as default
This commit is contained in:
parent
6aea11cde4
commit
4998414e68
3 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ impl AppInfo {
|
|||
}
|
||||
}
|
||||
pub fn load_data(&self,app_env: &AppEnv) -> Self {
|
||||
let usedata = match std::fs::read_to_string(format!("{}/{}/.use",&envmnt::get_or("APP_HOME", ""),app_env.get_curr_websrvr_config().home_path)) {
|
||||
let usedata = match std::fs::read_to_string(format!("{}/{}/.use",&envmnt::get_or("APP_HOME", "."),app_env.get_curr_websrvr_config().home_path)) {
|
||||
Ok(res) => res,
|
||||
// Err(e) => { println!("Error usedata: {}",e); String::from("")},
|
||||
Err(_) => String::from(""),
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ impl Config {
|
|||
if verbose != "quiet" {
|
||||
println!("Config Loaded successfully");
|
||||
}
|
||||
let app_home=envmnt::get_or("APP_HOME", "");
|
||||
let app_home=envmnt::get_or("APP_HOME", ".");
|
||||
// if app_home.is_empty() {
|
||||
// cfg
|
||||
// } else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue