pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/dsp-testing/NodeGoat/commit/1af3c64fdaeac5fa8d34c359d9df403eccbbc749

origen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-95af332f763e4560.css" /> Remove MONGOLAB_URI and mlab connection string · dsp-testing/NodeGoat@1af3c64 · GitHub
Skip to content

Commit 1af3c64

Browse files
committed
Remove MONGOLAB_URI and mlab connection string
* MONGOLAB_URI isn't needed as the mongolab addon has been removed * Removed the old mlab connection URI as that database will be deleted * Default db is localhost:27017, for all other cases set MONGODB_URI (don't commit database credentials to a public repo)
1 parent 12fa8fa commit 1af3c64

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

config/env/all.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
// default app configuration
22

33
const port = process.env.PORT || 4000;
4-
let db = process.env.MONGOLAB_URI || process.env.MONGODB_URI;
5-
6-
if (!db) {
7-
db = process.env.NODE_ENV === 'test' ? "mongodb://localhost:27017/nodegoat" : "mongodb://nodegoat:owasp@ds159217.mlab.com:59217/nodegoat";
8-
}
4+
let db = process.env.MONGODB_URI || "mongodb://localhost:27017/nodegoat";
95

106
module.exports = {
117
port,

config/env/development.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
module.exports = {
2-
// Local instance.
3-
// To install mongodb: https://docs.mongodb.org/manual/tutorial/
4-
// With mongodb installed, All you should need to do is uncomment the `db` property below, and run the following command:
5-
// grunt db-reset:development
6-
// That will create the local nodegoat data-store, or restore it to a clean state if it already exists.
7-
8-
// db: "mongodb://localhost:27017/nodegoat",
9-
10-
// If you want to use a MongoLab instance, just sign up for it, create a data-store, in this example we call it nodegoat.
11-
// and again just run the grunt db-reset:development command
12-
//db: 'mongodb://<dbuser>:<dbpassword>@<databasename>',
13-
142
// If you want to debug regression tests, you will need the following which is also in the test config:
153
zapHostName: "192.168.56.20",
164
zapPort: "8080",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy