Skip to content

Commit

Permalink
Hiding DB url
Browse files Browse the repository at this point in the history
  • Loading branch information
DarianRushworth committed Aug 24, 2020
1 parent a23a5cf commit 10ff1ca
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
/node_modules
.env
4 changes: 2 additions & 2 deletions config/config.json → config/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
module.exports = {
"development": {
"url": "postgres://angzwyez:9_u0oDmJVDtG-SSczkd5rsaV1TI7G5Fe@kandula.db.elephantsql.com:5432/angzwyez",
"url": process.env.DATABASE_URL_DEV,
"dialect": "postgres",
"operatorsAliases": "0"
},
Expand Down
2 changes: 1 addition & 1 deletion config/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
SALT_ROUNDS: 10,
PORT: process.env.PORT || 4000
PORT: process.env.PORT || 4000,
};
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require("dotenv").config()

const express = require("express");
const loggerMiddleWare = require("morgan");
const corsMiddleWare = require("cors");
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dependencies": {
"bcrypt": "^5.0.0",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"morgan": "^1.9.1",
Expand Down

0 comments on commit 10ff1ca

Please sign in to comment.