Adds magic server config
This commit is contained in:
parent
094ccf73b5
commit
a3d521b078
1 changed files with 1 additions and 3 deletions
|
|
@ -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: []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue