Skip to content

Commit

Permalink
fix: use dotenv to load environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Feb 25, 2021
1 parent 0357b3c commit dd19799
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgresql://username:password@host:port/treetracker_dev?ssl=no-verify
5 changes: 5 additions & 0 deletions server/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 server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@sentry/node": "^5.4.3",
"body-parser": "^1.18.2",
"chai": "^4.2.0",
"dotenv": "^8.2.0",
"express": "^4.16.2",
"express-lru": "^1.0.0",
"loglevel": "^1.7.1",
Expand Down
1 change: 1 addition & 0 deletions server/server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require('dotenv').config()
const app = require("./app");
var port = process.env.NODE_PORT || 3000;

Expand Down

0 comments on commit dd19799

Please sign in to comment.