Meteor Settings or Environment Variables?


#1

Which should I use? Environment variables or settings.json. I don’t want to use both.


#2

relevant;opinionated

if you Dockerize I don’t see the issue with env


#3

Hi, we prefer also a well defined set of YAML setting files. You may have look on that package – looking forward to your feedback. If you prefer JSON files, you can also use those with the above package.

https://atmospherejs.com/4commerce/env-settings

https://atmospherejs.com/4commerce/meteor-namespace-template-helper


#4

Hmm. You only get the configs after Meteor.startup? Thats not very nice. It looks like this is a very similar approach to Meteor.settings though right?


#5

Hi, the settings are loaded through Package meteor on a very early stage during bootstrap.

Normally this is the first package which is loaded and is implied by meteor-platform. This package exports the Meteor var also.


#6

@ccorcos - … or did you reflect your question to our package (env-settings) ?