Copy assets in Dockerfile, remove debug println

This commit is contained in:
Gabriel Simmer 2023-07-20 15:13:49 +01:00
parent d307ff0b03
commit 72814bd0a9
Signed by: arch
GPG key ID: C81B106D46C5B875
2 changed files with 1 additions and 1 deletions

View file

@ -19,5 +19,6 @@ COPY --from=builder /usr/src/app/gabrielsimmerdotcom /app/gabrielsimmerdotcom
COPY litefs.yml /etc COPY litefs.yml /etc
COPY --from=flyio/litefs:0.5 /usr/local/bin/litefs /usr/local/bin/litefs COPY --from=flyio/litefs:0.5 /usr/local/bin/litefs /usr/local/bin/litefs
COPY --from=builder /usr/src/app/posts/ /app/posts/ COPY --from=builder /usr/src/app/posts/ /app/posts/
COPY --from=builder /usr/src/app/assets/ /app/assets/
ENTRYPOINT litefs mount ENTRYPOINT litefs mount

View file

@ -98,7 +98,6 @@ async fn list_blog_posts() -> Markup {
for entry in fs::read_dir("./posts").unwrap() { for entry in fs::read_dir("./posts").unwrap() {
let entry = entry.unwrap(); let entry = entry.unwrap();
let path = entry.path(); let path = entry.path();
println!("{}", path.display());
let filename = path.file_name().unwrap().to_str().unwrap(); let filename = path.file_name().unwrap().to_str().unwrap();
let ext = path.extension().unwrap().to_str().unwrap(); let ext = path.extension().unwrap().to_str().unwrap();
// strip extension // strip extension