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 {