Rename markdowns folder to data_src folder
This commit is contained in:
parent
cf71667480
commit
06ab69d1b8
3 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ COPY --from=builder /app/target/site /app/site
|
||||||
# Copy Cargo.toml if it’s needed at runtime
|
# Copy Cargo.toml if it’s needed at runtime
|
||||||
COPY --from=builder /app/Cargo.toml /app/
|
COPY --from=builder /app/Cargo.toml /app/
|
||||||
# Copy all data files
|
# Copy all data files
|
||||||
COPY --from=builder /app/markdowns /app/markdowns
|
COPY --from=builder /app/data_src /app/data_src
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Set any required env variables and
|
# Set any required env variables and
|
||||||
|
|
|
@ -61,7 +61,7 @@ cfg_if::cfg_if! {
|
||||||
|
|
||||||
let mut posts: Vec<Self> = Vec::new();
|
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())?;
|
let paths = read_dir(folder_path).map_err(|e| e.to_string())?;
|
||||||
|
|
||||||
for path_result in paths {
|
for path_result in paths {
|
||||||
|
|
Loading…
Reference in a new issue