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
|
|
@ -12,7 +12,7 @@ pub fn load_from_module(env: AppEnv, coll_key: &str) -> (String,String) {
|
|||
if let Some(module) = env.modules.get(coll_key) {
|
||||
match module.stores.to_owned().as_str() {
|
||||
"file" => {
|
||||
let store_root =format!("{}/{}/{}",&envmnt::get_or("APP_HOME", ""),&env.get_curr_websrvr_config().home_path,&module.store_root);
|
||||
let store_root =format!("{}/{}/{}",&envmnt::get_or("APP_HOME", "."),&env.get_curr_websrvr_config().home_path,&module.store_root);
|
||||
(module.store_frmt.to_owned(), load_fs_content(&store_root, &module.store_path, &module.store_frmt))
|
||||
},
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue