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