From b33c98958d298d6b70028de99d0dc4bb72839709 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 9 Feb 2023 11:42:39 +0100 Subject: [PATCH] fix config path --- src/main.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5433de5..3107d8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,14 +1,13 @@ +use actix_files::Files; +use actix_web::{web, App, HttpServer}; +use glob::glob; +use minify_html::{minify, Cfg}; use std::{ fs::{self, File}, io::{self, Write}, path::Path, }; -use actix_files::Files; -use actix_web::{web, App, HttpServer}; -use glob::glob; -use minify_html::{minify, Cfg}; - mod config; mod template; @@ -29,7 +28,7 @@ mod portfolio; #[actix_web::main] async fn main() -> io::Result<()> { - let config = config::get_config("/config/config.toml"); + let config = config::get_config("./config/config.toml"); let addr = ("127.0.0.1", config.port.unwrap_or(8080));