node-go/server/knexConfig.js
2020-01-13 14:47:45 -08:00

48 lines
888 B
JavaScript

// Update with your config settings.
require('dotenv').config()
module.exports = {
development: {
client: 'postgresql',
connection: process.env.PG_CONNECTION_STRING,
migrations: {
directory: './data/migrations',
},
},
test: {
client: 'postgresql',
connection: process.env.PG_CONNECTION_STRING_TEST,
migrations: {
directory: './data/migrations',
},
},
staging: {
client: 'postgresql',
connection: process.env.DATABASE_URL,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
pool: {
min: 2,
max: 10
}
},
production: {
client: 'postgresql',
connection: process.env.DATABASE_URL,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
pool: {
min: 2,
max: 10
}
}
};