Rename markdowns folder to data_src folder

This commit is contained in:
Florian RICHER 2023-12-10 20:54:18 +01:00
parent cf71667480
commit 06ab69d1b8
3 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ COPY --from=builder /app/target/site /app/site
# Copy Cargo.toml if its 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

View file

@ -61,7 +61,7 @@ cfg_if::cfg_if! {
let mut posts: Vec<Self> = 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 {