From 896034cc94b09d6efc1eba6bb2fdad03269ff369 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 6 Jun 2023 14:35:16 +0300 Subject: chore(corp/rih): bootstrap backend application with rouille Change-Id: I48b0c432a843db5a44b3a3de09f18e1232644a44 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8715 Reviewed-by: tazjin Tested-by: BuildkiteCI --- corp/rih/backend/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 corp/rih/backend/src/main.rs (limited to 'corp/rih/backend/src/main.rs') 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")); +} -- cgit 1.4.1