18 lines
376 B
Rust
18 lines
376 B
Rust
use std::path::PathBuf;
|
|
|
|
use anyhow::*;
|
|
use log::LevelFilter;
|
|
use northstar::{Server, GEMINI_PORT};
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<()> {
|
|
env_logger::builder()
|
|
.filter_module("northstar", LevelFilter::Debug)
|
|
.init();
|
|
|
|
Server::bind(("localhost", GEMINI_PORT))
|
|
.add_route("/", PathBuf::from("public"))
|
|
.serve()
|
|
.await
|
|
}
|