graphql-engine/community/boilerplates/auth-servers/passportjs-jwt-roles/knexfile.js
Pilou e7fba40fad added auth-jwt-roles boilerplate (#1570)
Added a boilerplate from [this original repository](https://github.com/platyplus/authentication-server) based on the discussions in [this issue](https://github.com/hasura/graphql-engine/issues/1420) and [this issue](https://github.com/hasura/graphql-engine/issues/1446).

[skip ci]
2019-02-21 16:42:47 +05:30

17 lines
337 B
JavaScript

// Update with your config settings.
const databaseName = 'postgres'
const pg = require('pg')
const connection_url =
process.env.DATABASE_URL ||
`postgres://postgres:@localhost:5432/${databaseName}`
module.exports = {
client: 'pg',
connection: connection_url,
migrations: {
directory: __dirname + '/db/migrations'
}
}