gilamran
PROOP
a year 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
brody
EMPLOYEE
a year 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?
brody
EMPLOYEE
a year ago
in the service settings
brody
EMPLOYEE
a year ago
switch to v2
brody
EMPLOYEE
a year ago
yep that's all
brody
EMPLOYEE
a year ago
!s
Status changed to Solved brody • about 1 year ago