R
Railway9mo ago
codico

Can not connect to DATABASE_PRIVATE_URL during build time

It doesn't seem like it's working, I run prisma migrate and prisma generate during buildtime, but it crashes when using ${{Postgres.DATABASE_PRIVATE_URL}} and works when using ${{Postgres.DATABASE_URL}} I get:
2.637 Error: P1001: Can't reach database server at `postgres.railway.internal`:`5432`
2.637 Error: P1001: Can't reach database server at `postgres.railway.internal`:`5432`
Solution:
the private network is not available during build
Jump to solution
5 Replies
Percy
Percy9mo ago
Project ID: 09bf07b8-3bc8-438d-8d8e-8e3b6d26d05a
codico
codico9mo ago
09bf07b8-3bc8-438d-8d8e-8e3b6d26d05a
Solution
Brody
Brody9mo ago
the private network is not available during build
codico
codico9mo ago
Make sense! I'll try out using a different url during buildtime & runtime 👍 Thank you!
Brody
Brody9mo ago
no prob!
Want results from more Discord servers?
Add your server