Skip to content

Instantly share code, notes, and snippets.

@stoneboyindc
Created August 18, 2020 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoneboyindc/d89ba690a2a9f866670f8e91918a841a to your computer and use it in GitHub Desktop.
Save stoneboyindc/d89ba690a2a9f866670f8e91918a841a to your computer and use it in GitHub Desktop.
PORT=8000
NODE_ENV='development'
DATABASE_URL='postgresql://ashley2@localhost/noteful'
TEST_DATABASE_URL='postgresql://ashley2@localhost/noteful_test_api'
@stoneboyindc
Copy link
Author

require('dotenv').config();

module.exports = {
"migrationsDirectory": "migrations",
"driver": "pg",
"connectionString": (process.env.NODE_ENV === 'test')
? process.env.TEST_DATABASE_URL
: process.env.DATABASE_URL
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment