More changes for db migration

This commit is contained in:
Jonathan Cremin 2016-08-07 14:38:05 +01:00
parent de0284e48a
commit 889dc02945
33 changed files with 740 additions and 100 deletions

4
app.js
View file

@ -8,13 +8,10 @@ import bodyparser from 'koa-bodyparser';
import websockify from 'koa-websocket';
import helmet from 'koa-helmet';
import raven from 'raven';
import mongo from './lib/mongo';
import * as redis from './lib/redis';
import api, { ws } from './api/app';
import web from './web/app';
import models from './models';
import debugname from 'debug';
const debug = debugname('hostr');
@ -52,7 +49,6 @@ app.use(function* errorMiddleware(next) {
}
});
app.use(mongo());
app.use(redis.middleware());
app.use(logger());
app.use(compress());