Adds magic server config

This commit is contained in:
benbot 2023-10-27 03:57:22 -04:00
parent 094ccf73b5
commit a3d521b078

View file

@ -16,9 +16,7 @@ import Config
# #
# Alternatively, you can use `mix phx.gen.release` to generate a `bin/server` # Alternatively, you can use `mix phx.gen.release` to generate a `bin/server`
# script that automatically sets the env var above. # script that automatically sets the env var above.
if System.get_env("PHX_SERVER") do config :ezcontainer_railway, EzcontainerRailwayWeb.Endpoint, server: true
config :ezcontainer_railway, EzcontainerRailwayWeb.Endpoint, server: true
end
if config_env() == :prod do if config_env() == :prod do
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: [] maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []