feat: cut over rust web main shell
This commit is contained in:
@@ -8,10 +8,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
let config = AppConfig::from_env();
|
||||
let bind_addr = config.bind_addr.clone();
|
||||
let public_bind_addr = config.public_bind_addr.clone();
|
||||
let app = build_app(AppState::new(config));
|
||||
let listener = TcpListener::bind(&bind_addr).await?;
|
||||
|
||||
info!(bind_addr = %bind_addr, "mnote-web 最小骨架已启动");
|
||||
info!(bind_addr = %bind_addr, public_bind_addr = %public_bind_addr, "mnote-web gateway 已启动");
|
||||
axum::serve(listener, app).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user