re-add PORT parsing

This commit is contained in:
2024-12-21 22:41:32 -06:00
parent 088bcbfc6d
commit 1b81adcc86

View File

@@ -7,8 +7,8 @@ async fn hello() -> &'static str {
#[tokio::main]
async fn main() {
// let port = std::env::var("PORT").unwrap_or_else(|_| "5800".to_string());
let addr = format!("0.0.0.0:{}", "5800");
let port = std::env::var("PORT").unwrap_or_else(|_| "5800".to_string());
let addr = format!("0.0.0.0:{}", port);
tracing_subscriber::fmt().init();
let router = Router::new().get(hello);