Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update dev.sh localhost binding

Leendert de Borstbf39a3e4a85a
diff --git a/scripts/dev.sh b/scripts/dev.sh
index b12e9d27a..86f751265 100755
--- a/scripts/dev.sh
+++ b/scripts/dev.sh
@@ -189,6 +189,8 @@ toggle_db() {
}
# Run a .NET app with ports + DB driven by env/CLI flags.
+# Binds to 0.0.0.0 so the service is reachable from other devices on the LAN
+# (e.g. a phone running the mobile app), not just from localhost.
run_dotnet() {
local proj="$1" http="$2"
require dotnet
@@ -198,7 +200,7 @@ run_dotnet() {
ASPNETCORE_ENVIRONMENT="Development" \
ConnectionStrings__AliasServerDbContext="$CONN_STR" \
dotnet watch --project "$ROOT_DIR/apps/server/$proj" --no-launch-profile \
- --urls "http://localhost:$http"
+ --urls "http://0.0.0.0:$http"
}
# Dev-only secrets. These are static fake values that are used only in dev.