diff --git a/server-ce/Gruntfile.coffee b/server-ce/Gruntfile.coffee index 7a3e8d3ca3..7fb8881930 100644 --- a/server-ce/Gruntfile.coffee +++ b/server-ce/Gruntfile.coffee @@ -182,7 +182,7 @@ module.exports = (grunt) -> checkMongoConnect: (callback = (error) ->) -> grunt.log.write "Checking can connect to mongo" mongojs = require("mongojs") - db = mongojs.connect(settings.mongo.url, ["tags"]) + db = mongojs(settings.mongo.url, ["tags"]) db.runCommand { ping: 1 }, (err, res) -> if !err and res.ok grunt.log.write "OK."