We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3e086 commit 3523458Copy full SHA for 3523458
config/runtime.exs
@@ -0,0 +1,12 @@
1
+import Config
2
+
3
+# Runtime configuration for database
4
+# This file is evaluated after compilation, making it suitable for
5
+# reading environment variables that may change between environments
6
7
+if config_env() != :prod do
8
+ config :dx, Dx.Test.Repo,
9
+ hostname: System.get_env("POSTGRES_HOST", "localhost"),
10
+ username: System.get_env("POSTGRES_USER", "postgres"),
11
+ password: System.get_env("POSTGRES_PASSWORD", "postgres")
12
+end
0 commit comments