Update Github CI configuration
This commit is contained in:
@@ -29,7 +29,7 @@ impl Settings {
|
||||
let config_file_required = file.is_some();
|
||||
let config_path = env::var("CONFIG_PATH").unwrap_or_else(|_| "config".into());
|
||||
let config_file = file.unwrap_or_else(|| {
|
||||
env::var("CONFIG_FILE").unwrap_or_else(|_| format!("{}/dev", &config_path).into())
|
||||
env::var("CONFIG_FILE").unwrap_or_else(|_| format!("{}/dev", &config_path))
|
||||
});
|
||||
|
||||
let default_config_file = format!("{}/default", config_path);
|
||||
|
||||
@@ -55,9 +55,9 @@ pub fn run(listener: TcpListener, settings: &Settings) -> Result<Server, std::io
|
||||
if let Some(path) = &static_path {
|
||||
info!(
|
||||
"Mounting static files on {}",
|
||||
if path.is_empty() { "/" } else { &path }
|
||||
if path.is_empty() { "/" } else { path }
|
||||
);
|
||||
let static_scope = fs::Files::new(&path, &static_dir)
|
||||
let static_scope = fs::Files::new(path, &static_dir)
|
||||
.use_last_modified(true)
|
||||
.index_file("index.html");
|
||||
app = app.service(static_scope);
|
||||
|
||||
Reference in New Issue
Block a user