1

Other than PORT, MONGO_URL, where can we find the documentation for all the environmental variables that's exposed by Meteor?

In the Meteor docs, I can only find this line

PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js

Is there a variable that combines all the JS files and minifies them?

Nyxynyx
  • 61,411
  • 155
  • 482
  • 830

2 Answers2

2

I've been using grasp to answer your question. Here is the command line I used:

grasp -reo --no-line-number --no-color --no-filename process.env.__ . 2> /dev/null | sort | uniq | cut -c 17-

And here is the result on the devel branch:

_
ADMIN_APP
APP_CONFIG
APPDATA
AUTOUPDATE_VERSION
BIND_IP
COMP_CWORD
COMP_LINE
COMP_POINT
COMPUTERNAME
ComSpec
DDP_DEFAULT_CONNECTION_URL
DEBUG
DEBUG_MIME
DEBUG_NOPT
DESTDIR
DISABLE_WEBSOCKETS
EDITOR
GALAXY
GALAXY_APP
GALAXY_JOB
HOME
HOSTNAME
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
JOBS
LAST_START
MAIL_URL
MAKE
METEOR_SETTINGS
MONGO_URL
NODE_BINDINGS_ARROW
NODE_BINDINGS_COMPILED_DIR
NODE_DEBUG
NODE_ENV
NODE_NDEBUG
NOPT_DEBUG
npm_config_proxy
path
Path
PATH
PATHEXT
PORT
PREFIX
PROMPT
PS1
PWD
PYTHON
ROOT_URL
ROUTE
SERVER_ID
SHELL
SUDO_GID
SUDO_UID
SystemDrive
TEMP
TMP
TMPDIR
ULTRAWORLD_DDP_ENDPOINT
USE_JSESSIONID
USER
USERDOMAIN
USERNAME
USERPROFILE
VISUAL
windir

Most of thoses environment variables are not documented yet.

About minifing all js and css files, you can use the --production parameter:

meteor run --production

To get the documentation use the --help parameter:

meteor run --help
mquandalle
  • 2,600
  • 20
  • 24
1

The easiest way to discover what exists "under the covers" of any open source project is to look at its source code. A simple grep "process.env" * at the top of the meteor source tree will show you every instance of Meteor's use of the process environment.

Alternately, you can visit Meteor's github and search for 'process.env'. Doing this should display thirty matches.

Rob Raisch
  • 17,040
  • 4
  • 48
  • 58