Containerfile and compose

This commit is contained in:
2025-09-20 13:59:25 +02:00
parent a69b8a9c55
commit 9017888794
4 changed files with 42 additions and 2 deletions

View File

@ -151,10 +151,13 @@ fn get_dates(
#[tokio::main]
async fn main() {
const PORT: &'static str = "8000";
let app = Router::new()
.route("/", get(get_calendar))
.route("/ics", get(get_ics));
let listener = tokio::net::TcpListener::bind("0.0.0.0:8000").await.unwrap();
println!("Starting Application on port {PORT}");
let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{PORT}")).await.unwrap();
axum::serve(listener, app).await.unwrap();
}