#connection url for prisma using cloud run and cloud sql on google cloud

1 messages · Page 1 of 1 (latest)

abstract kraken
#

I have deployed a dockerized node app to google cloud run and connected to it cloud sql and I can see it in cloud sql connections tab
I added an env DATABASE_URL in this format

DATABASE_URL= "postgresql://{{username}}:{{password}}@{{connection name given by cloud sql}}:5432/{{database name}}}}"``
however its telling me cannot reach
#

no ssl no nothing I made it public ip

supple grail
#

did you ever solve this? the connection string postgresql://user:pass@localhost/db_name?host=/cloudsql/project:region:instance-name seems to be the right format from my searching, but it doesn't work

supple grail
#

ultimately i got it working, but there seemed to be a 10-20 minute lag between deploying the new service with a cloud sql connection and being able to connect over the socket.