【发布时间】:2018-09-26 20:06:06
【问题描述】:
我在 Google App Engine 上运行使用 Google Cloud Postgresql 实例的 Sails.js 应用程序。部署应用程序时出现连接被拒绝错误。这是我的sailsjs 连接配置:
postgresGoogle: {
adapter: 'sails-postgresql',
socketPath: '/cloudsql/' + process.env.INSTANCE_CONNECTION_NAME,
user: 'xxxxx',
password: 'xxxxx',
database: 'postgres'
}
如果我添加主机,它会引发超时错误。有谁知道使用 GCP postresql 配置sailsjs 连接的正确方法?
【问题讨论】:
-
请对此有任何反馈?
标签: postgresql google-app-engine google-cloud-platform sails.js