Last active
August 29, 2020 17:07
-
-
Save cs-fedy/1d3ca25d4a07d9f6fea7dfa994fdba3f to your computer and use it in GitHub Desktop.
setting up knexfile.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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