about summary refs log tree commit diff
path: root/corp/rih/backend/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'corp/rih/backend/src/main.rs')
-rw-r--r--corp/rih/backend/src/main.rs8
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 0000000000..719d3c19af
--- /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"));
+}