Hi again,
I have one app all up and running now pointing at a postgres application. I’m trying to migrate my other app from an external db to point at the same application but I get the non-existing domain error from postgrex everytime. I’m using the same DATABASE_URL for both applications. Config section below, the if stuff is because I’m migrating from it pointing at an external server that without ipv6 support and is temporary while I try to figure this out. App name has been changed.
fly_db = System.fetch_env!("FLY_DB") || "false"
if fly_db == "true" do
config :my_app, MyApp.Repo,
log: false,
ssl: false,
socket_options: [:inet6],
adapter: Ecto.Adapters.Postgres,
url: System.fetch_env!("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
timeout: 300_000
else
config :my_app, MyApp.Repo,
log: false,
adapter: Ecto.Adapters.Postgres,
url: System.fetch_env!("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
timeout: 300_000
end