Skip to content

Commit 6a10b8f

Browse files
committed
Load env vars for dotenvy to use
1 parent 5f47318 commit 6a10b8f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

config/runtime.exs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import Dotenvy
44
alias Elixir.Cluster.Strategy.DNSPoll
55
alias PhoenixContainerExample.Config.Endpoint, as: EndpointConfig
66

7+
source([
8+
# ".env.default",
9+
# ".env.#{config_env()}",
10+
System.get_env()
11+
])
12+
713
roles = "ROLES" |> System.get_env("app") |> String.split(",") |> Enum.map(&String.to_atom/1)
814
config :phoenix_container_example, roles: roles
915

0 commit comments

Comments
 (0)