1024programmer Java Connect to Google Cloud SQL from App Engine instance

Connect to Google Cloud SQL from App Engine instance

I want to run an elixir application in the flexible environment of Google App Engine.

I also have a postgresql server running on Google Cloud SQL.

I am able to deploy the application in a docker container. The problem is that I cannot find how to configure the connection to the postgresql server.

As far as I know, the App Engine instance is running the Cloud SQL Agent but I keep getting the following error in the instance: [Error] Postgrex.Protocol(#PID ) cannot connect: **(DBConnection. ConnectionError )tcp connect(localhost:5432): Connection refused – :econnrefused

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/764990

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索