Merge pull request #300 from budziq/serving_url
Reformatted "Serving on " message for easier consumption
This commit is contained in:
commit
316bcf7b5d
|
@ -270,10 +270,11 @@ fn serve(args: &ArgMatches) -> Result<(), Box<Error>> {
|
||||||
|
|
||||||
std::thread::spawn(move || { ws_server.listen(&*ws_address).unwrap(); });
|
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 {
|
if open_browser {
|
||||||
open(format!("http://{}", address));
|
open(serving_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger_on_change(&mut book, move |path, book| {
|
trigger_on_change(&mut book, move |path, book| {
|
||||||
|
|
Loading…
Reference in New Issue