vagrant-meteor is a tool to help run Meteor silently in a VM to ease installation and usage.
vagrant-meteor uses Vagrant to create an Ubuntu image, install Meteor and other required packages, and expose it to the user.
First, use Git to clone this repo to your computer somewhere with
git clone --recursive https://github.com/beefsack/vagrant-meteor.git.
Use your command line to change to the directory where you cloned this repo
Start Vagrant to create and run the VM using
vagrant up. This will download
Ubuntu and configure the VM automatically, and can take a few minutes.
Connect into the VM by using
vagrant ssh. This will connect you into the
image, with zsh as the shell.
You can now create a project to start working on using
mrt create my-app.
Meteorite is installed to make meteor
and meteor package management much simpler, so it may be better to use the
command in general instead of the
meteor command, though you can use either.
Once you have created the project, you will notice a
my-app directory will
have appeared in your vagrant-meteor directory. You can edit the code inside
this directory as it is automatically synced into the VM.
You can run the app inside the VM by running
cd my-app and
mrt. Your local
port 3000 is redirected into the Vagrant VM, so when you are running meteor
apps, you can open a web browser and navigate to http://localhost:3000 to view
When you are finished doing work, you can use
vagrant halt to stop the VM.