Skip to content

Instantly share code, notes, and snippets.

@victorsteven
Last active April 20, 2019 17:35
Show Gist options
  • Select an option

  • Save victorsteven/d55a888afe16ab923f5564e49a69de35 to your computer and use it in GitHub Desktop.

Select an option

Save victorsteven/d55a888afe16ab923f5564e49a69de35 to your computer and use it in GitHub Desktop.
The config.js file
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