From 92749fcfa2e6e4e7f79bc0085700406f0ec9b1ab Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Fri, 11 Feb 2022 10:31:24 -0500 Subject: [PATCH] CHanged listning host to 0.0.0.0 --- Dockerfile | 1 - src/main.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5312eff..e5bd427 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,4 @@ COPY target/x86_64-unknown-linux-musl/release/vade /app/vade EXPOSE 8080 WORKDIR app RUN touch data.db -RUN ls -lh CMD ["./vade"] diff --git a/src/main.rs b/src/main.rs index f0f5b84..1dd2fea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,7 @@ async fn main() { .service(api::routes()) .service(dist) }) - .bind("127.0.0.1:8080") + .bind("0.0.0.0:8080") .unwrap() .run() .await