Application can now run as Docker container.
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ async fn main() -> std::io::Result<()> {
|
||||
Pow::init_random().expect("Cannot init captcha");
|
||||
|
||||
let cfg_path = matches.opt_str("c").unwrap_or("config.toml".to_string());
|
||||
let srv_conf = load_config(&cfg_path);
|
||||
let srv_conf = load_config(cfg_path.trim());
|
||||
|
||||
env_logger::Builder::from_env(Env::default().default_filter_or(srv_conf.logging().severity())).init();
|
||||
info!("Starting server");
|
||||
|
||||
Reference in New Issue
Block a user