Browse Source

Update config.rs

pull/1415/head
weroy 4 years ago
committed by GitHub
parent
commit
cb3e35825f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/config.rs

2
src/config.rs

@ -12,7 +12,7 @@ use crate::{
};
static CONFIG_FILE: Lazy<String> = Lazy::new(|| {
let data_folder = get_env("DATA_FOLDER").unwrap_or_else(|| String::from("home"));
let data_folder = get_env("DATA_FOLDER").unwrap_or_else(|| String::from("${WEBAPP_STORAGE_HOME}"));
get_env("CONFIG_FILE").unwrap_or_else(|| format!("{}/config.json", data_folder))
});

Loading…
Cancel
Save