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