Skip to content

Commit cfcf6d9

Browse files
committed
Merge pull request #134 from Bobo1239/serve-print
Add host and port output when running mdbook serve Closes #132
2 parents 6bc088d + e3f398c commit cfcf6d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/mdbook.rs

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ fn serve(args: &ArgMatches) -> Result<(), Box<Error>> {
226226
ws_server.listen(&*ws_address).unwrap();
227227
});
228228

229+
println!("\nServing on {}", address);
230+
229231
trigger_on_change(&mut book, move |event, book| {
230232
if let Some(path) = event.path {
231233
println!("File changed: {:?}\nBuilding book...\n", path);

0 commit comments

Comments
 (0)