Skip to content

Commit

Permalink
hide uri
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadtrad committed Jul 26, 2020
1 parent b313fb5 commit 784773b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
.vscode
.env
7 changes: 6 additions & 1 deletion 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 @@ -21,6 +21,7 @@
"homepage": "https://github.com/Star-Nosed-Mole/Scratch#readme",
"dependencies": {
"@nivo/circle-packing": "^0.62.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"pg": "^8.3.0",
"react": "^16.13.1",
Expand Down
5 changes: 3 additions & 2 deletions server/models/stackModels.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// import PG_URI from '../../.env';
const { Pool } = require('pg');

const PG_URI = 'postgres://fqimhpba:[email protected]:5432/fqimhpba';
require("dotenv").config();

// create a new pool here using the connection string above
const pool = new Pool({
connectionString: PG_URI
connectionString: process.env.PG_URI
});

// We export an object that contains a property called query,
Expand Down

0 comments on commit 784773b

Please sign in to comment.