From 5f17e495357e1dd0c74e2a9fdad2251478223242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Juul=20Brunsh=C3=B8j?= Date: Mon, 13 Jan 2025 16:59:11 +0100 Subject: [PATCH] chore: serve on LAN --- crates/ascend/Cargo.toml | 2 +- justfile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ascend/Cargo.toml b/crates/ascend/Cargo.toml index 533dddf..9d1073c 100644 --- a/crates/ascend/Cargo.toml +++ b/crates/ascend/Cargo.toml @@ -74,7 +74,7 @@ style-file = "style/main.scss" assets-dir = "public" # The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup. -site-addr = "127.0.0.1:3000" +site-addr = "0.0.0.0:1337" # The port to use for automatic reload monitoring reload-port = 3001 diff --git a/justfile b/justfile index 32f080a..d24234d 100644 --- a/justfile +++ b/justfile @@ -25,3 +25,7 @@ run-release: reset-state: cargo leptos serve -- reset-state + +# Open firewall port for development +open-firewall: + sudo nixos-firewall-tool open tcp 1337