mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-20 05:49:14 +00:00
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]
|
#[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…
Add table
Reference in a new issue