Skip to content

Instantly share code, notes, and snippets.

@stivncastillo
Forked from kkemple/knexfile-example.js
Created April 12, 2019 19:18
Show Gist options
  • Save stivncastillo/7a01105d1d1a32c02b50ea9fe75c36bc to your computer and use it in GitHub Desktop.
Save stivncastillo/7a01105d1d1a32c02b50ea9fe75c36bc to your computer and use it in GitHub Desktop.
module.exports = {
development: {
client: 'postgresql',
connection: {
port: process.env.DATABASE_PORT,
host: process.env.DATABASE_HOST,
database: process.env.DATABASE_NAME,
user: process.env.DATABASE_USER,
password: process.env.DATABASE_ACCESS_KEY,
},
pool: {
min: process.env.DATABASE_POOL_MIN,
max: process.env.DATABASE_POOL_MAX,
},
migrations: {
directory: './db/migrations',
tableName: 'knex_migrations',
},
seeds: {
directory: './db/seeds',
},
},
staging: { ... },
test: { ... },
production: { ... },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment