Added server start log
This commit is contained in:
parent
82cf1ed26f
commit
a74f37e965
@ -23,6 +23,7 @@ async fn favicon() -> HttpResponse {
|
|||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
// start http server
|
// start http server
|
||||||
|
println!("Running Libreddit on 0.0.0.0:8080!");
|
||||||
HttpServer::new(|| {
|
HttpServer::new(|| {
|
||||||
App::new()
|
App::new()
|
||||||
// GENERAL SERVICES
|
// GENERAL SERVICES
|
||||||
@ -41,7 +42,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
// USER SERVICES
|
// USER SERVICES
|
||||||
.service(user::page)
|
.service(user::page)
|
||||||
})
|
})
|
||||||
.bind("127.0.0.1:8080")?
|
.bind("0.0.0.0:8080")?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user