mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-04-19 19:30:01 -05:00
Compare commits
No commits in common. "0b1224f8e53debbc0d91fc21d7223b91c2f28552" and "fc785c3eef9f4168f548f7d322e3b0e618cb0b46" have entirely different histories.
0b1224f8e5
...
fc785c3eef
2 changed files with 3 additions and 4 deletions
|
@ -78,7 +78,7 @@ async fn main() -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tell the user that the server has started, and where it is listening to, rather than simply outputting nothing
|
// Tell the user that the server has started, and where it is listening to, rather than simply outputting nothing
|
||||||
eprintln!("Server has started at 0.0.0.0 on port {port}.");
|
eprintln!("Server has started at 0.0.0.0 on port 4567.");
|
||||||
|
|
||||||
// Actually start the server
|
// Actually start the server
|
||||||
HttpServer::new(move || {
|
HttpServer::new(move || {
|
||||||
|
@ -113,7 +113,7 @@ async fn main() -> Result<()> {
|
||||||
.default_service(actix_web::web::get().to(services::error404))
|
.default_service(actix_web::web::get().to(services::error404))
|
||||||
})
|
})
|
||||||
// Hardcode the port the server listens to. Allows for more intuitive Docker Compose port management
|
// Hardcode the port the server listens to. Allows for more intuitive Docker Compose port management
|
||||||
.bind(("0.0.0.0", port))?
|
.bind(("0.0.0.0", 4567))?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,7 @@ services:
|
||||||
container_name: chhoto-url
|
container_name: chhoto-url
|
||||||
ports:
|
ports:
|
||||||
# If you changed the "port" environment variable, adjust accordingly
|
# If you changed the "port" environment variable, adjust accordingly
|
||||||
# The number AFTER the colon should match the "port" variable and the number
|
# The number before the colon should match the "port" variable
|
||||||
# before the colon is the port where you would access the container from outside.
|
|
||||||
- 4567:4567
|
- 4567:4567
|
||||||
environment:
|
environment:
|
||||||
# Change if you want to mount the database somewhere else.
|
# Change if you want to mount the database somewhere else.
|
||||||
|
|
Loading…
Reference in a new issue