diff options
Diffstat (limited to '')
-rw-r--r-- | corp/rih/backend/src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/corp/rih/backend/src/main.rs b/corp/rih/backend/src/main.rs new file mode 100644 index 000000000000..719d3c19af67 --- /dev/null +++ b/corp/rih/backend/src/main.rs @@ -0,0 +1,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")); +} |