Problema for connect postgres in deploy

npm WARN config production Use `--omit=dev` instead.
> [email protected] start:migrate:prod
> prisma migrate dev --name init && npm run start:prod
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "railway" at "containers-us-west-128.railway.app:7496"
Error: P1001: Can't reach database server at `containers-us-west-128.railway.app`:`7496`
Please make sure your database server is running at `containers-us-west-128.railway.app`:`7496`.
npm WARN config production Use `--omit=dev` instead.
> [email protected] start:migrate:prod
> prisma migrate dev --name init && npm run start:prod
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "railway" at "containers-us-west-128.railway.app:7496"
Error: P1001: Can't reach database server at `containers-us-west-128.railway.app`:`7496`
Please make sure your database server is running at `containers-us-west-128.railway.app`:`7496`.
I've had this problem for a while, it loses the database connection and I have to keep redoing the database
10 Replies
Percy
Percy17mo ago
Project ID: 41a0502e-3568-4da7-96db-3ed7adcd4ffc
joaomarcusjesus
joaomarcusjesusOP17mo ago
Project Id 41a0502e-3568-4da7-96db-3ed7adcd4ffc
joaomarcusjesus
joaomarcusjesusOP17mo ago
Brody
Brody16mo ago
please show us a screenshot of your service variables
joaomarcusjesus
joaomarcusjesusOP16mo ago
Brody
Brody16mo ago
can you connect to your database with something like pgadmin?
joaomarcusjesus
joaomarcusjesusOP16mo ago
yes, in dBeaver
Brody
Brody16mo ago
do you happpen to have private networking enabled?
joaomarcusjesus
joaomarcusjesusOP16mo ago
no
Brody
Brody16mo ago
can you try increasing the connection timeout
Want results from more Discord servers?
Add your server