2

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

stefcud
  • 2,220
  • 4
  • 27
  • 37

2 Answers2

1

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.

David Weldon
  • 63,632
  • 11
  • 148
  • 146
  • I'm use mercurial! I did not understand, meteor read the file .gitignore for ignore db after I reset? – stefcud May 21 '13 at 02:25
  • 1
    meteor does not use the `.gitignore` file - it's just there for people using git so they don't accidentally check in their database. Since you are using mercurial, just add a `.hgignore`. – David Weldon May 21 '13 at 03:00
1

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.

Community
  • 1
  • 1
Adrian Lopez
  • 2,601
  • 5
  • 31
  • 48