Meteor Deployment Settings


What is the purpose of the --settings flag of the 'meteor run' command?

Set optional data for Meteor.settings on the server. Typically when developing I would use meteor run —settings settings.json. This works fine and can view the settings in the browser with Meteor.settings on the console.

Settings. These are in a JSON object set via either the --settings Meteor command-line flag or stringified into the METEOR_SETTINGS environment variable. As for setting environment variables, if you use a 3rd party host, you may have a GUI or CLI to define them. Otherwise, you should have plenty resources including on SO:

In short, it should look like:

METEOR_SETTINGS='{"key":"value"}' node main.js

You can also try the bash cat command to extract the content of a file: $(cat settings.json)

They need to go before the command.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License