How can I share MongoDB collections between Meteor apps?

后端 未结 3 1980
礼貌的吻别
礼貌的吻别 2020-11-27 18:45

I\'d like to be able to have an admin app and a client app for my project. Ideally, I\'d like to be able to have a shared MongoDB collection. How would I be able to accompli

3条回答
  •  野性不改
    2020-11-27 19:00

    export MONGO_URL=mongodb://localhost:3002/meteor
    

    Then run meteor app, it will change the default database meteor uses. So share databases or collections won't be a problem! For administrative reason, I would use a individual MongoDB server managed by myself other than using meteor's internal MongoDB.

提交回复
热议问题