Skip to content

Commit 49fcfe9

Browse files
Merge pull request #1541 from rust-lang/fix-site-docker
Copy templates in `rustc-perf` Dockerfile
2 parents 939359a + 343cf6c commit 49fcfe9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
3535
COPY --from=build /target/release/postgres-to-sqlite /usr/local/bin/rustc-perf-postgres-to-sqlite
3636
COPY --from=build /target/release/site /usr/local/bin/rustc-perf-site
3737
COPY --from=build site/static /site/static
38+
COPY --from=build site/templates /site/templates
3839

3940
CMD rustc-perf-site

site/src/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,10 @@ async fn handle_fs_path(req: &Request, path: &str) -> Option<http::Response<hype
613613
_ => (),
614614
}
615615

616-
let start = Instant::now();
617616
let source = match path {
618617
"/help.html" => TEMPLATES.render("help.html").await.unwrap().into_bytes(),
619618
_ => fs::read(&fs_path).unwrap(),
620619
};
621-
println!("{:?}", start.elapsed());
622620

623621
Some(response.body(hyper::Body::from(source)).unwrap())
624622
}

0 commit comments

Comments
 (0)