meteor/meteor — pull request #1105 by lennartcl (2013-05-28 14:20:10+00:00)
Title: Add variables & command-line options for binding

This pull request adds environment variables and additional command-line options for specifying what address and ports to bind to.

At [Cloud9](https://c9.io) we dig Meteor :+1: :) And we want it to work out of the box on our platform. Right now, that means that Meteor needs to be bound to a specific IP and port, as described in [this blog post](https://c9.io/site/blog/2013/05/can-i-use-cloud9-to-do-x/). This pull request adds the options needed to do that to Meteor.

I understand there have been other patches for this problem before, but we want to move forward with this and be able to support Meteor as soon as possible :) What we'll do on our end is pre-set all the environment variables so it all just works.

In short, this PR makes sure Meteor has the following options:
* `--port` and `METEOR_PORT` set the port (normally 3000)
* `--inner_port` and `METEOR_INNER_PORT` set the internal port (normally 3001)
* `--mongo_port` and `METEOR_MONGO_PORT` set the port used by MongoDB (normally 3002)
* `--bind` and `METEOR_IP` set the IP to bind to (normally `0.0.0.0`)
* `--inner_bind` and `METEOR_INNER_BIND` set the IP to bind to for the internal ports (normally `127.0.0.1`)