Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mongo-dev-server package (#8853)
* 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.
- Loading branch information
Showing
8 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# mongo-dev-server | ||
|
||
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/mongo-dev-server) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/mongo-dev-server) | ||
*** | ||
|
||
When the `mongo-dev-server` package is included in a Meteor application, a | ||
local development MongoDB server is started alongside the application. This | ||
package is mostly used internally, as it is included by default with any | ||
application that has a dependency on `mongo` (which is most Meteor | ||
applications). In some cases however, people might be interested in | ||
using the Meteor Tool without having to start a local development Mongo | ||
instance (e.g. when using Meteor as a build system). If an application has no | ||
dependency on `mongo`, the `mongo-dev-server` package will be removed | ||
(since it is a direct dependency of the `mongo` package), and no local | ||
development Mongo server will be started. | ||
|
||
Note this is a `debugOnly` package, meaning it will not be included in any | ||
production bundles. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Package.describe({ | ||
debugOnly: true, | ||
documentation: 'README.md', | ||
name: 'mongo-dev-server', | ||
summary: 'Start MongoDB alongside Meteor, in development mode.', | ||
version: '1.0.0', | ||
}); | ||
|
||
Package.onUse(function (api) { | ||
api.use('modules'); | ||
api.mainModule('server.js', 'server'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if (process.env.MONGO_URL === 'no-mongo-server') { | ||
Meteor._debug('Note: Restart Meteor to start the MongoDB server.'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters