node-go/server/knexfile.js

49 lines
888 B
JavaScript
Raw Normal View History

2020-01-08 05:46:24 +00:00
// Update with your config settings.
require('dotenv').config()
module.exports = {
development: {
client: 'postgresql',
2020-01-10 00:32:36 +00:00
connection: process.env.PG_CONNECTION_STRING,
migrations: {
directory: './data/migrations',
},
2020-01-08 05:46:24 +00:00
},
2020-01-08 21:25:28 +00:00
test: {
client: 'postgresql',
2020-01-10 00:32:36 +00:00
connection: process.env.PG_CONNECTION_STRING_TEST,
migrations: {
directory: './data/migrations',
},
2020-01-08 21:25:28 +00:00
},
2020-01-08 05:46:24 +00:00
staging: {
client: 'postgresql',
2020-01-10 00:29:20 +00:00
connection: process.env.DATABASE_URL,
2020-01-08 05:46:24 +00:00
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
pool: {
min: 2,
max: 10
}
},
production: {
client: 'postgresql',
2020-01-10 00:29:20 +00:00
connection: process.env.DATABASE_URL,
2020-01-08 05:46:24 +00:00
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
pool: {
min: 2,
max: 10
}
}
};