gilamran
PROOP
2 years ago
I'm trying to connect to a postgres service via the internal network, the nodejs is using DATABASE_URL variable to connect to postgres, so I've added a DATABASE_URL and assigned ${{Postgres.DATABASE_PRIVATE_URL}} to it, when the nodejs starts I see that the variable value is correct but it's unable to connect.
What am I doing wrong?
10 Replies
2 years ago
are you getting the error during build or runtime?
is Postgres in the same project?
check your service settings, are you on the v2 runtime?
2 years ago
in the service settings
2 years ago
switch to v2
2 years ago
yep that's all
2 years ago
!s
Status changed to Solved brody • over 1 year ago