noahsettersten commited on
Commit
3a05661
1 Parent(s): f22b0a2

chore: Re-enable error for when DATABASE_URL is missing

Browse files
Files changed (1) hide show
  1. config/runtime.exs +4 -6
config/runtime.exs CHANGED
@@ -23,12 +23,10 @@ end
23
  if config_env() == :prod do
24
  database_url =
25
  System.get_env("DATABASE_URL") ||
26
- IO.puts("Warning: Environment variable DATABASE_URL is missing.")
27
-
28
- # raise """
29
- # environment variable DATABASE_URL is missing.
30
- # For example: ecto://USER:PASS@HOST/DATABASE
31
- # """
32
 
33
  # maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
34
 
 
23
  if config_env() == :prod do
24
  database_url =
25
  System.get_env("DATABASE_URL") ||
26
+ raise """
27
+ environment variable DATABASE_URL is missing.
28
+ For example: ecto://USER:PASS@HOST/DATABASE
29
+ """
 
 
30
 
31
  # maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
32