fix config path

This commit is contained in:
Mylloon 2023-02-09 11:42:39 +01:00
parent 6b932d45ba
commit b33c98958d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,14 +1,13 @@
use actix_files::Files;
use actix_web::{web, App, HttpServer};
use glob::glob;
use minify_html::{minify, Cfg};
use std::{ use std::{
fs::{self, File}, fs::{self, File},
io::{self, Write}, io::{self, Write},
path::Path, path::Path,
}; };
use actix_files::Files;
use actix_web::{web, App, HttpServer};
use glob::glob;
use minify_html::{minify, Cfg};
mod config; mod config;
mod template; mod template;
@ -29,7 +28,7 @@ mod portfolio;
#[actix_web::main] #[actix_web::main]
async fn main() -> io::Result<()> { 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)); let addr = ("127.0.0.1", config.port.unwrap_or(8080));