Reputation: 357
Is it possible to start a new Meteor project using a local instance of regular MongoDB in place of the default minimongo?
If so, how?
Upvotes: 4
Views: 4559
Reputation: 4847
If you have mongodb already installed just run Meteor project with command
MONGO_URL=mongodb://localhost:27017/meteorprojectname meteor run
I found the answer here
Upvotes: 0
Reputation: 75945
The mongodb running with meteor is still the standard mongodb, minimongo is only the client side implementation of this that allows the browser side to make queries to a collection.
Start meteor like this with your terminal as mentioned on the unofficial meteor faq
MONGO_URL=mongodb://localhost:27017/database meteor
EDIT:
You can read about this in projectdir/.meteor/local/build/README
:
This is a Meteor application bundle. It has only one dependency, node.js (with the 'fibers' package). To run the application:
$ npm install [email protected] $ export MONGO_URL='mongodb://user:password@host:port/databasename' $ export ROOT_URL='http://example.com' $ export MAIL_URL='smtp://user:password@mailhost:port/' $ node main.js
Use the PORT environment variable to set the port where the application will listen. The default is 80, but that will require root on most systems.
Find out more about Meteor at meteor.com.
Upvotes: 13