This commit is contained in:
Tommy Parnell
2021-12-28 14:10:49 -05:00
parent 6cedd27c72
commit 7b98b0cc28

View File

@@ -21,7 +21,7 @@ fn index() -> &'static str {
fn rocket() -> _ { fn rocket() -> _ {
let port = std::env::var("PORT").unwrap_or("8000".to_string()); let port = std::env::var("PORT").unwrap_or("8000".to_string());
let port_as_int = port.parse::<u16>().unwrap(); let port_as_int = port.parse::<u16>().unwrap();
let figmant = rocket::Config::figment().merge(("port", port_as_int)); let figmant = rocket::Config::figment().merge(("port", port_as_int)).merge(("address", "0.0.0.0"));
rocket::custom(figmant).mount("/", routes![index]) rocket::custom(figmant).mount("/", routes![index])
} }