简体   繁体   中英

Meteor Run mongo-dev-server(project dev local mongo) when using external mongodb

Q. How to use mongo-dev-server, internal MongoDB in Meteor Project, during use external MongoDB with 'export MONGO_URL'?

Explain. I understand MongoDB must be used fully installed MongoDB version on production mode. But sometimes I need a temporary DB locally for performance in Scaled out service.

In this case we could set up external local mongodb as well, but it would be easy to use mongo-dev-server just for temp DB.

To be clear

I want to use external MongoDB, set up by export MONGO_URL and default internal MongoDB which is running with meteor command automatically, both.

Because when I set up MONGO_URL when meteor run, the internal mongo db is not running by default.

You could just set up a mongodb instance that you use for this kind of work. Create a "super user" for this instance that has access to any database. Then use this user in your scratch server, and either give them a new database or use an existing one. A small setup in the first place, and then easy to use from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM