Explorar o código

Fixed hardcode.

Edward Bramanti %!s(int64=10) %!d(string=hai) anos
pai
achega
c707e46e73
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      frameworks/JavaScript/express/app.js

+ 2 - 2
frameworks/JavaScript/express/app.js

@@ -9,8 +9,8 @@ var cluster = require('cluster')
   , express = require('express')
   , mongoose = require('mongoose')
   , async = require('async')
-  , conn = mongoose.connect('mongodb://127.0.0.1/hello_world')
-  , connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: '127.0.0.1', charset: 'utf8' };
+  , conn = mongoose.connect('mongodb://localhost/hello_world')
+  , connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: 'localhost', charset: 'utf8' };
 
 var Schema = mongoose.Schema
   , ObjectId = Schema.ObjectId;