From b3898aafe9c02f07125fff30e41e0d13ca2785dc Mon Sep 17 00:00:00 2001 From: Anatoly Bugakov Date: Thu, 20 Jul 2023 20:42:54 +0100 Subject: [PATCH] testing demo --- template_drivers/build.rs | 2 +- template_drivers/src/api/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template_drivers/build.rs b/template_drivers/build.rs index d04ce63f..3d54cd24 100644 --- a/template_drivers/build.rs +++ b/template_drivers/build.rs @@ -1,7 +1,7 @@ use static_files::resource_dir; fn main() -> std::io::Result<()> { - dbg!("Anatoly"); + dbg!("building"); let path = std::env::var("STATIC_FILES_DIR").unwrap_or_else(|_| "../frontend/dist".to_string()); resource_dir(dbg!(path)).build() } diff --git a/template_drivers/src/api/mod.rs b/template_drivers/src/api/mod.rs index 649c0ec0..0f903a49 100644 --- a/template_drivers/src/api/mod.rs +++ b/template_drivers/src/api/mod.rs @@ -34,7 +34,7 @@ pub fn run_server( let ds = Data::from(ds); let _templates = Data::new(_templates); - dbg!("ANATOoOOOOOoooOOOOoooOOOOOOOOooLY"); + dbg!("app"); // This is Useful to run locally in dev mode, without regenerating dist, just serve whatever is in the dir // Note: it goes together with .service(actix_files::Files::new("/", &static_files_dir).index_file("index.html")) later