Using new mongodb connection string for the file server.

This commit is contained in:
Zaid Abdulla committed 2013-09-04 12:50:43 +03:00
1 parent 60a4947a69
commit e3b184553e
3 files changed
+16 -13

No files matched your search

+1 -11
View File
@@ -8,17 +8,7 @@ devicesCollection = null
presetsCollection = null
objectsCollection = null
options = {
db : {
w : 1
wtimeout : 60000
}
server : {
auto_reconnect : true
}
}
mongodb.MongoClient.connect("mongodb://#{config.MONGODB_SOCKET}/#{config.DATABASE_NAME}", options, (err, db) ->
mongodb.MongoClient.connect("mongodb://#{config.MONGODB_SOCKET}/#{config.DATABASE_NAME}", config.MONGODB_OPTIONS, (err, db) ->
exports.mongoDb = db
db.collection('tasks', (err, collection) ->
throw new Error(err) if err?