Environment variables when deploying Meteor

Except PORT , MONGO_URL , where can we find documentation for all environment variables set by Meteor?

In 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 JS files and minimizes them?

+1
meteor
source share
2 answers

I used grasp to answer your question. Here is the command I use:

 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 thoses environment variables are not yet documented.

To minimize all js and css files, you can use the --production parameter:

 meteor run --production 

To get the documentation, use the --help option:

 meteor run --help 
+2
source share

The easiest way to find out 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 each instance of the process meteor usage.

Alternatively, you can visit Meteor github and find "process.env". Thirty matches should be displayed.

+1
source share

All Articles