about summary refs log tree commit diff
path: root/corp/rih/backend/src/main.rs
blob: 719d3c19af6735c98787709b346ff6bfdbf7a7a1 (plain) (blame)
1
2
3
4
5
6
7
8
use rouille::{Request, Response};
use std::env;

fn main() {
    let port = env::var("PORT").unwrap_or_else(|_| /* rihb = */ "7442".to_string());
    let listen = format!("0.0.0.0:{port}");
    rouille::start_server(&listen, move |_request| Response::text("hello world"));
}