R
Railway12mo ago
odysseus

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?
No description
No description
6 Replies
Percy
Percy12mo ago
Project ID: b0b525c1-ced1-4ba1-ab53-25856ba5b50d
odysseus
odysseusOP12mo ago
b0b525c1-ced1-4ba1-ab53-25856ba5b50d
Brody
Brody12mo ago
@jr - database related question
odysseus
odysseusOP12mo ago
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.
jr
jr12mo ago
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 currently
odysseus
odysseusOP12mo ago
not entirely sure what did it but figured it out, thanks!
Want results from more Discord servers?
Add your server