Migrating dbs to V2 - PG URL never seems to work
When I try to set DATABASE_URL as the private networking, public networking, or the PRIVATE_DATABASE_URL key that was provided in the migration--does not ever connect. What should I be doing?
6 Replies
Project ID:
b0b525c1-ced1-4ba1-ab53-25856ba5b50d
b0b525c1-ced1-4ba1-ab53-25856ba5b50d
@jr - database related question
Basically, I thought I had everything from the DB migrated properly. Then I migrated Redis to V2, and things broke, possibly by using the PRIVATE_URL instead of just REDIS_URL. But that wasn't it, since I just tried switching those.
What variable did you change?
It looks like you set the
DATABASE_URL
of the Postgres service to the internal URL. The Data tab connects over the public so is failing
You should instead be confuming the Postgres.DATABASE_PRIVATE_URL
in your application
You will still be able to connect inside your application. But the Data tab won't work currentlynot entirely sure what did it but figured it out, thanks!