Skip to content

Commit

Permalink
testing demo
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyBuga committed Jul 20, 2023
1 parent 3a6d483 commit b3898aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template_drivers/build.rs
Original file line number Diff line number Diff line change
@@ -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()
}
2 changes: 1 addition & 1 deletion template_drivers/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3898aa

Please sign in to comment.