fix config path
This commit is contained in:
parent
6b932d45ba
commit
b33c98958d
1 changed files with 5 additions and 6 deletions
11
src/main.rs
11
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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue