Only start the MongoDB server if this package is present in the project.
For now I've added mongo-dev-server as a dependency of mongo, do we want to do this?
A lot of packages rely on the meteor package and when using Meteor as a build system you might wanna use packages like static-html or dynamic-import but you might still not want a local mongodb instance started.
I'm thinking we could remove mongo-dev-server as a mongo dependency and use the upgrades thing to just add this package to all current meteor projects on upgrade and add it to the default packages when creating a new project.
The way this PR is now results in MONGO_URL being set to
This is a first step at resolving meteor/meteor-feature-requests#31.
Nooo, you can't leave!! Seriously though, no problem at all @zimme - thanks for getting things this far. I'll aim to make the remaining small changes, over the next few days (schedule permitting of course - you might find this PR waiting for you when you get back
@abernix I meant to include it as part of this PR, as I was making adjustments to help get the tests pass here first. I then realized that we need more adjustments, so I created meteor#8933 separately. Since I had already committed this here though, I just left it. Let me know if you think it should be moved. Thanks!
* Add mongo-dev-server package Only start the MongoDB server if this package is present in the project. * Small layout/formatting adjustments; updated README. * Allow tests using fake-mongod to start (fake) Mongo. * Adjust test stdout matching to be less sensitive to ordering. * Add `mongo-dev-server` History.md entry. * Remove mongo start check since the tested for error prevents mongo startup. * Remove README traling whitespace. * Bump mongo package version.
This reverts commit 4d37a05. After git bisecting between origin/release-1.5 and origin/release-1.5.2, I identified this commit as the culprit in recent failures of the modules test app: https://circleci.com/gh/meteor/meteor/4857#tests/containers/3 Note that the modules test app seems to be failing only on Linux, and it does pass reliably with this commit reverted. It must have something to do with Mongo failing to start, and thus the "App running at" message never appears, but I don't have a good theory why that might be. The command to run just the modules test app is meteor self-test --history 1000 'modules - test app' @zimme @hwillson @abernix any ideas?