From 06ab69d1b8163290a30e388146f61b46657c86ab Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 10 Dec 2023 20:54:18 +0100 Subject: [PATCH] Rename markdowns folder to data_src folder --- Dockerfile | 2 +- {markdowns => data_src}/posts/test.md | 0 src/app/models/post.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {markdowns => data_src}/posts/test.md (100%) diff --git a/Dockerfile b/Dockerfile index c60fb6e..644d00a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ COPY --from=builder /app/target/site /app/site # Copy Cargo.toml if it’s needed at runtime COPY --from=builder /app/Cargo.toml /app/ # Copy all data files -COPY --from=builder /app/markdowns /app/markdowns +COPY --from=builder /app/data_src /app/data_src WORKDIR /app # Set any required env variables and diff --git a/markdowns/posts/test.md b/data_src/posts/test.md similarity index 100% rename from markdowns/posts/test.md rename to data_src/posts/test.md diff --git a/src/app/models/post.rs b/src/app/models/post.rs index f9a517a..39a6e88 100644 --- a/src/app/models/post.rs +++ b/src/app/models/post.rs @@ -61,7 +61,7 @@ cfg_if::cfg_if! { let mut posts: Vec = Vec::new(); - let folder_path = Path::new("markdowns").join(folder); + let folder_path = Path::new("data_src").join(folder); let paths = read_dir(folder_path).map_err(|e| e.to_string())?; for path_result in paths {