是否可以使用普通的本地MongoDB代替默认的minimongo来启动新的Meteor项目?
如果可以,应该如何操作?
MONGO_URL=mongodb://localhost:27017/database meteor
编辑:
你可以在 项目目录/.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 fibers@1.0.0 $ 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.
MONGO_URL=mongodb://localhost:27017/meteorprojectname meteor run
我在这里找到了答案。