How can I change a database for accounts by DDP on meteor? -


i have meteor app "a" using accounts-base, accounts-ui, accounts-twitter, , accounts-weibo.

i decided make meteor app "b", same above mobile devices.

are there ways change database accounts packages use on b, a's?

it may possible, though not absolutely sure. may work:

var connection = ddp.connect("http://other_server");  meteor.users = new meteor.collection("users", { connection: connection }); 

if 'collection defined error' may have fork accounts-base , use in place of used meteor.users & should fine.

what pretends ddp client other server, allowing users app b use users collection app a, yet have separate database itself.

the other option share same mongo_url other app, , wouldn't have worry modifying accounts-base package (if have to)


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -