Connect to service mongo and redis in CI

This commit is contained in:
Jonathan Cremin 2016-05-24 18:22:03 +01:00
parent fc40e0e3f5
commit d5ad652dda
3 changed files with 7 additions and 4 deletions

View file

@ -1,7 +1,6 @@
const MongoClient = require('mongodb').MongoClient;
const url = 'mongodb://localhost:27017/hostr';
MongoClient.connect(url, function connect(err, db) {
MongoClient.connect(process.env.MONGO_URL, function connect(err, db) {
const collection = db.collection('files');
collection.createIndex({
'owner': 1,

View file

@ -1,7 +1,6 @@
const MongoClient = require('mongodb').MongoClient;
const url = 'mongodb://localhost:27017/hostr';
MongoClient.connect(url, function connect(err, db) {
MongoClient.connect(process.env.MONGO_URL, function connect(err, db) {
const collection = db.collection('users');
collection.remove({
'email': 'test@hostr.co',