Update config/dev.exs

This commit is contained in:
Mirai Kumiko 2025-06-30 14:42:41 +02:00
parent dc25c926ba
commit 01c2c57933
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278

View file

@ -16,11 +16,13 @@ config :nulla, Nulla.Repo,
# The watchers configuration can be used to run external # The watchers configuration can be used to run external
# watchers to your application. For example, we can use it # watchers to your application. For example, we can use it
# to bundle .js and .css sources. # to bundle .js and .css sources.
host = System.get_env("PHX_HOST") || "localhost"
port = String.to_integer(System.get_env("PORT") || "4000") port = String.to_integer(System.get_env("PORT") || "4000")
config :nulla, NullaWeb.Endpoint, config :nulla, NullaWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines. # Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow 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], http: [ip: {127, 0, 0, 1}, port: port],
check_origin: false, check_origin: false,
code_reloader: true, code_reloader: true,