Files
automatisch/packages/backend/knexfile.ts
2021-11-24 11:06:39 +01:00

23 lines
516 B
TypeScript

import appConfig from './src/config/app';
const knexConfig = {
client: 'pg',
connection: {
host: appConfig.postgresHost,
port: appConfig.postgresPort,
user: appConfig.postgresUsername,
password: appConfig.postgresPassword,
database: appConfig.postgresDatabase,
ssl: appConfig.postgresEnableSsl
},
pool: { min: 0, max: 20 },
migrations: {
directory: __dirname + '/src/db/migrations',
},
seeds: {
directory: __dirname + '/src/db/seeds',
}
}
export default knexConfig;