node-go/server/knexfile.js

51 lines
972 B
JavaScript
Raw Permalink 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,
2020-01-18 22:15:44 +00:00
seeds: { directory: './data/seeds' },
2020-01-10 00:32:36 +00:00
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,
2020-01-18 22:15:44 +00:00
seeds: { directory: './data/seeds' },
2020-01-10 00:32:36 +00:00
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
}
}
};