Reformatted "Serving on " message for easier consumption
Now we have: `Serving on: http://localhost:3000`
This commit is contained in:
parent
4364ec3a7b
commit
453b97bec0
|
@ -270,10 +270,11 @@ fn serve(args: &ArgMatches) -> Result<(), Box<Error>> {
|
|||
|
||||
std::thread::spawn(move || { ws_server.listen(&*ws_address).unwrap(); });
|
||||
|
||||
println!("\nServing on {}", address);
|
||||
let serving_url = format!("http://{}", address);
|
||||
println!("\nServing on: {}", serving_url);
|
||||
|
||||
if open_browser {
|
||||
open(format!("http://{}", address));
|
||||
open(serving_url);
|
||||
}
|
||||
|
||||
trigger_on_change(&mut book, move |path, book| {
|
||||
|
|
Loading…
Reference in New Issue