From a3d521b078a900b44c91adc79d867a696161690b Mon Sep 17 00:00:00 2001 From: benbot Date: Fri, 27 Oct 2023 03:57:22 -0400 Subject: [PATCH] Adds magic server config --- config/runtime.exs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 1852d30..64df67c 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -16,9 +16,7 @@ import Config # # Alternatively, you can use `mix phx.gen.release` to generate a `bin/server` # script that automatically sets the env var above. -if System.get_env("PHX_SERVER") do - config :ezcontainer_railway, EzcontainerRailwayWeb.Endpoint, server: true -end +config :ezcontainer_railway, EzcontainerRailwayWeb.Endpoint, server: true if config_env() == :prod do maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []