Change port

This commit is contained in:
Guus Waals
2025-10-29 19:57:02 +08:00
parent 4c167dd31d
commit de05bb3480

View File

@@ -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