Can't connect to database from nestjs backend
bega
HOBBYOP

2 years ago

Hi, I have trouble connecting to my Postgres DB from nestjs backend.

It is happening at the build time. Because of that, my backend can't start.

I can connect to DB from my localhost, it is working. But when I am deploying my backend it is throwing me a connection error.

Thanks.

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

6 Replies


bega
HOBBYOP

2 years ago

Hey brody, logs attached

Attachments


2 years ago

Can you connect to your database locally?


bega
HOBBYOP

2 years ago

Yes


2 years ago

Please make sure you have all the environment variables in place.


bega
HOBBYOP

2 years ago

Sure, let me check


Loading...