Change port
This commit is contained in:
@@ -57,11 +57,12 @@ async fn main() {
|
|||||||
.nest("/p", p_router)
|
.nest("/p", p_router)
|
||||||
.with_state(app_state);
|
.with_state(app_state);
|
||||||
|
|
||||||
let listener = tokio::net::TcpListener::bind("127.0.0.1:3000")
|
let endpoint = "127.0.0.1:3011";
|
||||||
|
let listener = tokio::net::TcpListener::bind(endpoint)
|
||||||
.await
|
.await
|
||||||
.expect("Failed to bind to address");
|
.expect("Failed to bind to address");
|
||||||
|
|
||||||
println!("Server running on http://127.0.0.1:3000");
|
println!("Server running on {}", endpoint);
|
||||||
|
|
||||||
axum::serve(listener, app)
|
axum::serve(listener, app)
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user