1
0
mirror of /repos/Prototyper.git synced 2026-02-27 16:12:00 +01:00

app only recovers when sharejs has it's own backend.. need to write my own share model to do proper overrides

This commit is contained in:
Aiko Mastboom
2013-04-28 00:40:01 +02:00
parent 5af0393637
commit 73b8b4cc8e
2 changed files with 10 additions and 0 deletions

View File

@@ -10,6 +10,12 @@ var fs = require('fs');
module.exports = function (app, db, config) {
// share wraps express app with http.Server
if (config
&& config.share
&& config.share.db
&& config.share.db.type == 'mongo') {
config.share.db.client = db;
}
var server = ShareJS.server.attach(app, config.share);
var model = app.model;

View File

@@ -29,6 +29,10 @@ var config = {
},
staticpath: '/lib/share',
db: {type: 'none'}
// db: {
// type: 'mongo',
// opsCollectionPerDoc: false
// }
},
api: {
content: '/content',