Home How to configure sailsjs DB connection with Google Cloud SQL
Reply: 0

How to configure sailsjs DB connection with Google Cloud SQL

user597
1#
user597 Published in April 22, 2018, 10:09 pm

I'm running a Sails.js application that uses a Google Cloud Postgresql instance on Google App Engine. I'm getting a connection refused error when I deploy the application. This is my sailsjs connection config:

postgresGoogle: {
      adapter: 'sails-postgresql',
      socketPath: '/cloudsql/' + process.env.INSTANCE_CONNECTION_NAME,
      user: 'xxxxx',
      password: 'xxxxx',
      database: 'postgres'
     }

If I add the host, it throws a timeout error. Does anyone know the proper way to configure a sailsjs connection with GCP postresql?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297052 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO