Amy Detwiler
Postgres database configuration issues
I am building my first project in a while. When I look at my variables I have:
DATABASE_URL: postgresql://postgres:[email protected]:5432/railway
but I keep running into an issue like this:
{
databaseUrl: 'postgresql://postgres:[email protected]:5432/railway'
}
Using environment: production
getaddrinfo ENOTFOUND postgres.railway.internal
Error: getaddrinfo ENOTFOUND postgres.railway.internal
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
✗ railway run ping postgresql://postgres:[email protected]:5432/railway
ping: cannot resolve postgresql://postgres:[email protected]:5432/railway: Unknown host
what can I do to get the postgres instance connected?
14 replies