42 lines
760 B
JavaScript
42 lines
760 B
JavaScript
// Update with your config settings.
|
|
require('dotenv').config()
|
|
|
|
module.exports = {
|
|
|
|
development: {
|
|
client: 'postgresql',
|
|
connection: process.env.PG_CONNECTION_STRING
|
|
},
|
|
|
|
test: {
|
|
client: 'postgresql',
|
|
connection: process.env.PG_CONNECTION_STRING_TEST
|
|
},
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
};
|