Skip to content

Instantly share code, notes, and snippets.

@cs-fedy
Last active August 29, 2020 17:07
Show Gist options
  • Save cs-fedy/1d3ca25d4a07d9f6fea7dfa994fdba3f to your computer and use it in GitHub Desktop.
Save cs-fedy/1d3ca25d4a07d9f6fea7dfa994fdba3f to your computer and use it in GitHub Desktop.
setting up knexfile.js
require('dotenv').config();
module.exports = {
development: {
client: 'pg',
connection: {
database: process.env.POSTGRES_DB,
user: process.env.POSTGRES_USER,
password: process.env.POSTGRES_PASSWORD,
},
migrations: {
directory: './db/migrations'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment