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::{
|
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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue