Last active
April 20, 2019 17:35
-
-
Save victorsteven/d55a888afe16ab923f5564e49a69de35 to your computer and use it in GitHub Desktop.
The config.js file
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 = { | |
| // If using onine database | |
| // development: { | |
| // use_env_variable: 'DATABASE_URL' | |
| // }, | |
| development: { | |
| database: 'books', | |
| username: 'steven', | |
| password: null, | |
| host: '127.0.0.1', | |
| dialect: 'postgres' | |
| }, | |
| test: { | |
| database: 'book_test', | |
| username: 'steven', | |
| password: null, | |
| host: '127.0.0.1', | |
| dialect: 'postgres' | |
| }, | |
| production: { | |
| database: process.env.DB_NAME, | |
| username: process.env.DB_USER, | |
| password: process.env.DB_PASS, | |
| host: process.env.DB_HOST, | |
| dialect: 'postgres' | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment