Can't connect to database from nestjs backend

bega
HOBBY

a year 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
HOBBY

a year ago

Hey brody, logs attached

Attachments


a year ago

Can you connect to your database locally?


bega
HOBBY

a year ago

Yes


a year ago

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


bega
HOBBY

a year ago

Sure, let me check


Can't connect to database from nestjs backend - Railway Help Station