set bind to 0.0.0.0 and port to 2137 hahahahah and docker
This commit is contained in:
0
.dockerignore
Normal file
0
.dockerignore
Normal file
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM rust:latest
|
||||||
|
|
||||||
|
WORKDIR /usr/src/go_to_sleep
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
|
CMD ["./target/release/go_to_sleep"]
|
||||||
@@ -26,7 +26,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
use actix_web::{App, HttpServer};
|
use actix_web::{App, HttpServer};
|
||||||
|
|
||||||
HttpServer::new(|| App::new().service(index))
|
HttpServer::new(|| App::new().service(index))
|
||||||
.bind(("127.0.0.1", 8080))?
|
.bind(("0.0.0.0", 2137))?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user