diff --git a/Cargo.lock b/Cargo.lock index 4bf78ea..e988c12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -790,7 +790,7 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" [[package]] name = "docki" -version = "0.3.0" +version = "1.0.0" dependencies = [ "bytes", "clap 4.1.8", diff --git a/src/app/commands/serve.rs b/src/app/commands/serve.rs index 8fac25c..ec9f5ce 100644 --- a/src/app/commands/serve.rs +++ b/src/app/commands/serve.rs @@ -22,7 +22,12 @@ async fn watch_and_build() { } async fn start_server(port: Option) { - println!("\nServing at {} ", "http://localhost:8080".bold()); + let unwrapped_port = port.unwrap_or(8080); + println!( + "\nServing at {}{} ", + "http://localhost:".bold(), + unwrapped_port.to_string().bold() + ); let Ok(()) = listen("localhost", port.unwrap_or(8080), "./dist").await else { panic!("could not start server")