I'm trying to get sequelize going on GAE. But am struggling with the cloud SQL proxy that uses sockets on non-standard paths.
My understanding is that a url would get passed direct to the pg library, and based on this post, it would suggest the below string is what I need
I've setup the db configuration to be
{
url: 'postgresql:///db_user:db_password@/db_name?host=./cloudsql/my-project-1234:us-central1:my-cloud-sql-instance',
dialect: 'postgres'
}
However, if I run ./node_modules/.bin/sequelize db:migrate
I end up with the error:
ERROR: database "db_user:db_password@/db_name" does not exist