Copy assets in Dockerfile, remove debug println
This commit is contained in:
parent
d307ff0b03
commit
72814bd0a9
|
@ -19,5 +19,6 @@ COPY --from=builder /usr/src/app/gabrielsimmerdotcom /app/gabrielsimmerdotcom
|
|||
COPY litefs.yml /etc
|
||||
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/assets/ /app/assets/
|
||||
|
||||
ENTRYPOINT litefs mount
|
|
@ -98,7 +98,6 @@ async fn list_blog_posts() -> Markup {
|
|||
for entry in fs::read_dir("./posts").unwrap() {
|
||||
let entry = entry.unwrap();
|
||||
let path = entry.path();
|
||||
println!("{}", path.display());
|
||||
let filename = path.file_name().unwrap().to_str().unwrap();
|
||||
let ext = path.extension().unwrap().to_str().unwrap();
|
||||
// strip extension
|
||||
|
|
Loading…
Reference in a new issue