Easy way to connect dev app with production app?


#1

Hey guys,
I’m trying to connect my dev app with my productional version. Just for example, on my productional version I’ve some posts which I want to subscribe to. I’ve just read about the way using DDP.connect() on every collection, f.e.:

var conn = DDP.connect(“http://app.mysite.com”);
Posts = new Meteor.Collection(“posts”,conn);

But when using this, I’ll get the following error:

207-23:18:32.556(1)? Exception from sub posts id ijKrc5E5cmmrDHryN Error: must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit I20151207-23:18:32.556(1)? at [object Object]._.extend.observeChanges (packages/minimongo/minimongo.js:325:1) I20151207-23:18:32.557(1)? at Function.LocalCollection._observeFromObserveChanges (packages/minimongo/observe.js:177:1) I20151207-23:18:32.557(1)? at [object Object]._.extend.observe (packages/minimongo/minimongo.js:305:1) I20151207-23:18:32.557(1)? at Publication.publish (packages/reywood_publish-composite/packages/reywood_publish-composite.js:65:1) I20151207-23:18:32.557(1)? at packages/reywood_publish-composite/packages/reywood_publish-composite.js:413:1 I20151207-23:18:32.557(1)? at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1) I20151207-23:18:32.557(1)? at Function._.each._.forEach (packages/underscore/packages/underscore.js:134:1) I20151207-23:18:32.557(1)? at [object Object]. (packages/reywood_publish-composite/packages/reywood_publish-composite.js:411:1) I20151207-23:18:32.557(1)? at packages/matb33_collection-hooks/collection-hooks.js:275:1 I20151207-23:18:32.557(1)? at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)

Is there an “easy way” to switch the data connection to the productional server?