Why are my meteor settings not being passed to the application? -
set meteor_settings={"public": {"stage": "development"}} meteor
then line:
console.log(meteor.settings.public.stage);
causes error:
w20150612-20:45:38.338(-7)? (stderr) typeerror: cannot read property 'stage' of undefined
what doing wrong?
from understand environment variable deployment mode (running bundle).
in development, i.e., when running meteor
, need use --settings
command line parameter specify file containing settings.
Comments
Post a Comment