More changes for db migration
This commit is contained in:
parent
de0284e48a
commit
889dc02945
33 changed files with 740 additions and 100 deletions
4
app.js
4
app.js
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue