Score:0

Postgres/Sequelize/Node not working

jp flag

my issue is that i cant seem to get my app to serve. If i use my heroku db instance connection string, it works, but when i try to use google SQL, it wont serve. the db hooks up, and logs and everything is working fine, no errors. here is my connection

DBNAME: xxxxx:asia-south1:xxxxx
USER: postgres
PW: xxxxx
DB: yyyy


const options = {
  dialect: 'postgres',
  host: `/cloudsql/${DBNAME}`,
  dialectOptions: {
    socketPath: `/cloudsql/${DBNAME}`
  },
}

const db = new Sequelize(
  DB, USER, PW,
  { ...options }
);

What am i missing here?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.