-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
I want to have db-migrate authenticate by socket / peer auth, but this doesn't seem possible without hacking an env var.
const dbMigrateConfig = {
default: 'local',
local: {
driver: 'pg',
database: 'mydatabase',
host: '/var/run/postgres',
native: true
}
};'#ENOENT /var/run/postgres'
process.env['DBTEST'] = 'postgres:///${mydatabase}?host=/var/run/postgresql&native=true';
const dbMigrateConfig = {
default: 'local',
local: {
ENV: "DBTEST"
}
};
success.
Any chance the normal connection settings could allow connection via a socket?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Metadata
Metadata
Assignees
Labels
No labels