moved templates into own dir
This commit is contained in:
parent
f42c70b27e
commit
443dca2841
3 changed files with 4 additions and 3 deletions
|
@ -20,6 +20,7 @@ WORKDIR /app
|
|||
|
||||
COPY --from=builder /app/target/release/endstat /app
|
||||
COPY ./config /app/config
|
||||
COPY ./templates /app/templates
|
||||
RUN mv /app/config/endstat_conf.example.ron /app/config/endstat_conf.ron
|
||||
EXPOSE 8080
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ extern crate ring;
|
|||
|
||||
mod config;
|
||||
mod handlers;
|
||||
mod updater;
|
||||
mod results;
|
||||
mod updater;
|
||||
|
||||
use self::{config::*, handlers::*, updater::*, results::QueryResults};
|
||||
use self::{config::*, handlers::*, results::QueryResults, updater::*};
|
||||
use actix::System;
|
||||
use actix_web::{middleware::Logger, web::resource, App, HttpServer};
|
||||
use ron::de::from_str;
|
||||
|
@ -51,7 +51,7 @@ fn main() {
|
|||
let clone_state = Arc::clone(&state);
|
||||
|
||||
HttpServer::new(move || {
|
||||
let tera = compile_templates!("./config/templates/**/*");
|
||||
let tera = compile_templates!("./templates/**/*");
|
||||
let state = Arc::clone(&state);
|
||||
|
||||
App::new()
|
||||
|
|
Loading…
Reference in a new issue