kadirahq / mantra

Mantra - An Application Architecture for Meteor
https://kadirahq.github.io/mantra/
978 stars 52 forks source link

Vagrant for Mantra #179

Open merlinstardust opened 8 years ago

merlinstardust commented 8 years ago

I've create a repo containing a Vagrantfile and related scripts that builds a virtual machine for Mantra.

https://github.com/vagrant-templates/mantra

Should be useful for anyone who likes to use Vagrant in their stack.

fermuch commented 8 years ago

I can't quite understand what's the utility of using vagrant with mantra. Wouldn't it be the same as using a vagrant script for meteor?

merlinstardust commented 8 years ago

Mantra requires Meteor as well as Node/NPM. Meteor's .meteor/local and Node's node_modules directories do not like to be used across synced folders. So this repo handles both. It's entirely possible for a Meteor app to not require NPM packages at all, in which case the Vagrantfile would be different.

fermuch commented 8 years ago

Now I get it. Nice!

What benefits do you get by using mantra with vagrant? Complete isolation from the running machine?

merlinstardust commented 8 years ago

Complete isolation is one point. Another is that Meteor runs best on Linux, so if you're on Mac or Windows, it will run better. If you're on Linux, it's more just the isolation you'd get