ex_trainer/config/runtime.exs
Joao P Dubas 63d5ca3465 feat: migrate configuration to runtime
Two updates were made here:

1. Migrate from Mix.Config to Config
2. Use runtime to fetch dynamic configurations
2022-04-22 14:49:18 +00:00

7 lines
223 B
Elixir

import Config
config :wabanex, Wabanex.Repo,
username: System.get_env("POSTGRES_USER") || "postgres",
password: System.get_env("POSTGRES_PASS") || "postgres",
hostname: System.get_env("POSTGRES_HOST") || "localhost"