This commit is contained in:
2022-07-19 21:36:56 +02:00
parent e303b5ed45
commit 7f1937ffbc
20 changed files with 217 additions and 58 deletions

View File

@@ -5,12 +5,10 @@ lazy_static! {
pub static ref VERSION: String = option_env!("CARGO_PKG_VERSION")
.unwrap_or("Unknown")
.to_string();
pub static ref FRONTEND_PATH: String = option_env!("FRONTEND_PATH")
.unwrap_or("../frontend/build")
.to_string();
pub static ref LISTEN_ADDR: String = option_env!("LISTEN_ADDR")
.unwrap_or("0.0.0.0:5000")
.to_string();
pub static ref FRONTEND_PATH: String =
std::env::var("FRONTEND_PATH").unwrap_or("../frontend/build".to_string());
pub static ref LISTEN_ADDR: String =
std::env::var("LISTEN_ADDR").unwrap_or("0.0.0.0:5000".to_string());
}
// CONFIG