From 01c2c579333362c58bb4f517821b94b762c907c6 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Mon, 30 Jun 2025 14:42:41 +0200 Subject: [PATCH] Update config/dev.exs --- config/dev.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/dev.exs b/config/dev.exs index 2f57cdb..d62d0ae 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -16,11 +16,13 @@ config :nulla, Nulla.Repo, # The watchers configuration can be used to run external # watchers to your application. For example, we can use it # to bundle .js and .css sources. +host = System.get_env("PHX_HOST") || "localhost" port = String.to_integer(System.get_env("PORT") || "4000") config :nulla, NullaWeb.Endpoint, # Binding to loopback ipv4 address prevents access from other machines. # Change to `ip: {0, 0, 0, 0}` to allow access from other machines. + url: [host: host, port: port], http: [ip: {127, 0, 0, 1}, port: port], check_origin: false, code_reloader: true,