-
Notifications
You must be signed in to change notification settings - Fork 3
Provide a better way to use the Meteor Tool without Mongo #31
Comments
I have apps running without mongo, with next packages only:
As you see there is no |
It would be nice to be able to disable the start of mongodb when running Meteor. |
Or if you’re leveraging some totally random library to work with databases other than Mongo … 🙂 |
Yep, I think this would be a huge improvement for people looking to use Meteor as a build system. Perhaps we can factor out the database stuff as a hook somehow, so that it can be implemented as a package? |
So can we split this work up in at least 2 phases.
The way I'm using Meteor in a few projects is as a build system with no packages that uses mongodb.
In these projects I'm not using anything Meteor specific and just using Meteor instead of webpack. |
Right now passing MONGO_URL=false already works! It feels hacky though since it's an env var. |
Re-reading your comment again @stubailo, I believe you weren't talking about Meteor packages that is relying on MongoDB without needing too. So my previous comment might have been unnecessary. |
@stubailo, well... awesome! That's all I need 👍 |
Yeah there's not much we can do about packages over-declaring dependencies IMO. |
Ok, so with Meteor already being able to start without starting MongoDB alongside it. |
I think the ideal case would be that Mongo doesn't start by default if you don't have the "Mongo" package. |
Maybe we should step back a bit and clarify what this issue is about. The title says “Allow Meteor to run without a Mongo database”, but that is already achievable by removing the The intent of the original issue however (meteor/meteor#4645), was to find a way to use Meteor to build web apps, without requiring Mongo, while still retaining lots of Meteor’s other benefits (like livedata, accounts, etc.). So not just using Meteor as a build tool, but being able to leverage certain parts of the Meteor ecosystem with different databases. Re-reading the original issue, I wonder how much of this is still relevant now that we have Apollo (and alternate ways of handling livedata for example). I guess the accounts part is still valid, but that should probably be tracked in a separate issue (if it isn’t already - I’ll check shortly). So, what’s remaining with this feature request? Is it just coming up with a better way to disable Mongo, like #31 (comment)? |
@hwillson, I think that sounds about right. |
So I'm thinking if we just check |
Yes, I think something like this could work. We'll have to keep in mind the upcoming meteor/meteor#8769 changes (which will allow packages to be used via the |
I'll try and get a PR together later this week. What I've found so far is that we should be able to use |
Thanks @zimme - I think we’re really close to moving forward with this, but I haven’t marked it as |
No problem, wrote down what I found so far as I don't know if I'll have time to do this or not 😜 |
One thing that I can think of that might trip this up is the following. |
What if we create a dummy package |
I actually like that idea @mitar. |
I like the idea of having Going a step further (probably too far), I think it'd be even better if As for implementation, I'm not sure that using |
Sounds good like a good direction forward. Edit:
That sounds like a better approach 👍 I'm keeping an eye on meteor/meteor#8769 too, to see how that plays out. I'm hoping it will be implmented in a way that makes |
It was packageMap that had |
By using Also if we decide to check for the existence of a package and based on that start MongoDB or not, the developer needs to re-run |
~~Looking into this a bit more, it would be better to use There doesn't seem to be a better way than |
This is what I have so far while playing around with this. Should start mongodb if |
Setting |
I've opened meteor/meteor#8853 with a proposal that seems to work, based on the discussions in here. I would love to have |
Hello,
I've removed meteor remove meteor-base (previous versions of the technique was to remove meteor-platform but it doesn't seem to exist anymore...). And adding back meteor add meteor webapp hot-code-push (I don't use mongo but apollo so I guess I do not need the
|
@NitroBAY |
I've managed to remove apollo by duplicating only the necessary code from the package but meteor remove mongo gives 'mongo is not a direct dependency in this project.'
|
On atmosphere I haven't found any of these packages to have a dependency to mongo yet it mongo is still listed in the |
@NitroBAY |
Thanks. |
Migrated from: meteor/meteor#4645
The text was updated successfully, but these errors were encountered: