mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
Bump tera version to 1.8.0, print the listening port to cli (#421)
Co-authored-by: ZhiFeng Hu <huzhifeng@coldlake.cn>
This commit is contained in:
@ -31,6 +31,7 @@ async fn main() -> std::io::Result<()> {
|
||||
std::env::set_var("RUST_LOG", "actix_web=info");
|
||||
env_logger::init();
|
||||
|
||||
println!("Listening on: 127.0.0.1:8080, open browser and visit have a try!");
|
||||
HttpServer::new(|| {
|
||||
let tera =
|
||||
Tera::new(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*")).unwrap();
|
||||
|
Reference in New Issue
Block a user