ACCOUNT_DATABASE_URL from DATABASE_URL if not provided

account
Viktor Baranov 2 years ago
parent a172b17eec
commit b4a3748de4
  1. 6
      config/runtime/prod.exs

@ -49,7 +49,11 @@ config :explorer, Explorer.Repo.Replica1,
pool_size: pool_size_api,
ssl: String.equivalent?(System.get_env("ECTO_USE_SSL") || "true", "true")
database_account_url = System.get_env("ACCOUNT_DATABASE_URL")
database_account_url =
if System.get_env("ACCOUNT_DATABASE_URL"),
do: System.get_env("ACCOUNT_DATABASE_URL"),
else: System.get_env("DATABASE_URL")
pool_size_account = String.to_integer(System.get_env("ACCOUNT_POOL_SIZE", "50"))
# Configures Account database

Loading…
Cancel
Save