From 78f8c5bead12d1c798f7392b531da92de9b57749 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sat, 26 Oct 2024 22:57:50 -0500 Subject: [PATCH] fix: manually sleep thread to debug docker container --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index a4bbe9d..3ed43da 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ #[macro_use] extern crate rocket; +use core::time; use std::time::{SystemTime, UNIX_EPOCH}; use maud::{html, Markup, DOCTYPE}; @@ -134,6 +135,8 @@ fn skeleton(children: Markup) -> Markup { #[launch] fn rocket() -> _ { + std::thread::sleep(time::Duration::from_secs(360)); + rocket::build() .mount("/", routes![index]) .mount("/public", FileServer::from(relative!("public")))