1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2025-04-19 11:20:00 -05:00

Compare commits

..

No commits in common. "0b1224f8e53debbc0d91fc21d7223b91c2f28552" and "fc785c3eef9f4168f548f7d322e3b0e618cb0b46" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View file

@ -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
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
HttpServer::new(move || {
@ -113,7 +113,7 @@ async fn main() -> Result<()> {
.default_service(actix_web::web::get().to(services::error404))
})
// 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()
.await
}

View file

@ -8,8 +8,7 @@ services:
container_name: chhoto-url
ports:
# If you changed the "port" environment variable, adjust accordingly
# The number AFTER the colon should match the "port" variable and the number
# before the colon is the port where you would access the container from outside.
# The number before the colon should match the "port" variable
- 4567:4567
environment:
# Change if you want to mount the database somewhere else.