File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ results
13
13
14
14
npm-debug.log
15
15
node_modules
16
+
17
+ database.js.orig
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
remoteUrl :
'mongodb://node:[email protected] :27017/uwO3mypu' ,
3
- localUrl : 'mongodb://localhost/meanstacktutorials '
3
+ localUrl : 'mongodb://localhost/dummyDB '
4
4
} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var bodyParser = require('body-parser');
9
9
var methodOverride = require ( 'method-override' ) ;
10
10
11
11
// configuration ===============================================================
12
- // mongoose.connect(database.localUrl); // Connect to local MongoDB instance. A remoteUrl is also available (modulus.io)
12
+ mongoose . connect ( database . localUrl ) ; // Connect to local MongoDB instance. A remoteUrl is also available (modulus.io)
13
13
14
14
app . use ( express . static ( __dirname + '/public' ) ) ; // set the static files location /public/img will be /img for users
15
15
app . use ( morgan ( 'dev' ) ) ; // log every request to the console
You can’t perform that action at this time.
0 commit comments