fix: manually sleep thread to debug docker container
This commit is contained in:
parent
95d0cf6e73
commit
78f8c5bead
@ -1,5 +1,6 @@
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate rocket;
|
extern crate rocket;
|
||||||
|
use core::time;
|
||||||
use std::time::{SystemTime, UNIX_EPOCH};
|
use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
|
|
||||||
use maud::{html, Markup, DOCTYPE};
|
use maud::{html, Markup, DOCTYPE};
|
||||||
@ -134,6 +135,8 @@ fn skeleton(children: Markup) -> Markup {
|
|||||||
|
|
||||||
#[launch]
|
#[launch]
|
||||||
fn rocket() -> _ {
|
fn rocket() -> _ {
|
||||||
|
std::thread::sleep(time::Duration::from_secs(360));
|
||||||
|
|
||||||
rocket::build()
|
rocket::build()
|
||||||
.mount("/", routes![index])
|
.mount("/", routes![index])
|
||||||
.mount("/public", FileServer::from(relative!("public")))
|
.mount("/public", FileServer::from(relative!("public")))
|
||||||
|
Loading…
Reference in New Issue
Block a user