macroblog.rs @ 189166e2f44ca69537fa632032ec7ab252595d1b

fix: Pick a broader address bind

Trying to fixe the following issue from Heroku:

> Error R10 (Boot timeout) -> Web process failed to bind to $PORT
> within 60 seconds of launch
diff --git a/src/main.rs b/src/main.rs
index 49815b8088ca761462b7d9aa62f0560ce877d2cb..1fb0e9003272d0f3e5a537d5277227549600abee 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -93,8 +93,8 @@
 
 #[tokio::main]
 async fn main() {
-    let port = env::var("PORT").unwrap_or("3000".into()).parse::<u16>().unwrap_or(300);
-    let addr = SocketAddr::from(([127, 0, 0, 1], port));
+    let port = env::var("PORT").unwrap_or("3000".into()).parse::<u16>().unwrap_or(3000);
+    let addr = SocketAddr::from(([0, 0, 0, 0], port));
 
     let make_svc = make_service_fn(|_conn| async {
         Ok::<_, Infallible>(service_fn(request))