Meteor - Hivefication/Hive GitHub Wiki

Install Meteor and Meteorite

Meteor is available on various plaforms however not officialy for Windows. Extra informations could be found at https://github.com/meteor/meteor/wiki/Supported-Platforms.

$ curl https://install.meteor.com | /bin/sh

In our environment, we also need to install Meteorite which required to manage extra packages like moment.js http://momentjs.com/. Extra informations about Meteorite could be found at https://github.com/oortcloud/meteorite.

$ sudo -H npm install -g meteorite

It is important to install meteorite globally with the -g option. Then instand of start Meteor by meteor command, we have to launch it with mrt because Meteorite is wrapped around and replace basic Meteor command.

$ cd meteor-server
$ mrt

An important point is that mrt command have not to be launched with root users.

Bind Meteor with external MongoDB instance

Because our goal is to bind Meteor with an external instance of MongoDB, we have to use the small shell script below. The specified URL should point to the MongoDB instance of Node.js.

#!/bin/bash
export MONGO_URL=mongodb://localhost:27017/hive
mrt