stefcud
stefcud

Reputation: 2315

meteor: how to disable default mongodb?

in my meteor project, how can i remove or disable the default mongdodb?

.meteor/local/db/...

it's very large about 500MB! and i want exclude this from my project because use another external db

Upvotes: 2

Views: 925

Answers (2)

Adrian Lopez
Adrian Lopez

Reputation: 2887

Currently, the Meteor command line tool is hardcoded to run mongo. You might be able to specify a dummy MONGO_URL to avoid connecting to a database if you don't want to.

// Running meteor without a database
MONGO_URL=none meteor

If you pass a string different than none, it won't start during production. This question was solved here.

Upvotes: 1

David Weldon
David Weldon

Reputation: 64342

You can clear it out with a meteor reset (or mrt reset if you are using meteorite). By default you should have a .meteor/.gitignore file which will ignore the entire .meteor/local directory from your git repository. Of course, you will need something a little different if you use another version control system.

Upvotes: 1

Related Questions