Skip to content

Commit 603fdbd

Browse files
committed
now it works
1 parent 868d296 commit 603fdbd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ results
1313

1414
npm-debug.log
1515
node_modules
16+
17+
database.js.orig

config/database.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
remoteUrl : 'mongodb://node:[email protected]:27017/uwO3mypu',
3-
localUrl: 'mongodb://localhost/meanstacktutorials'
3+
localUrl: 'mongodb://localhost/dummyDB'
44
};

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var bodyParser = require('body-parser');
99
var methodOverride = require('method-override');
1010

1111
// 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)
1313

1414
app.use(express.static(__dirname + '/public')); // set the static files location /public/img will be /img for users
1515
app.use(morgan('dev')); // log every request to the console

0 commit comments

Comments
 (0)