Skip to content

Commit

Permalink
Add public url to server start log.
Browse files Browse the repository at this point in the history
fixes #11
  • Loading branch information
enaut committed Mar 9, 2021
1 parent 56ab3ea commit 8fd62a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ async fn webservice(server_config: ServerConfig) -> std::io::Result<()> {
&server_config.protocol,
host_port
);
slog_info!(
server_config.log,
"If the public url is set up correctly it should be accessible via: {}://{}/admin/login/",
&server_config.protocol,
&server_config.public_url
);

HttpServer::new(move || {
let tera = build_tera(); //Tera::new("templates/**/*").expect("failed to initialize the templates");
Expand Down

0 comments on commit 8fd62a7

Please sign in to comment.