Using the datariot:ganalytics plugin, very confused as to how to setup the settings.json/meteor.settings file


#1

I’ve read the section on the docs and still just dont understand. How exactly to I set Meteor.settings to this json file? I can’t do it on deploy because I need to bundle for production.


#2

In development
meteor --settings pathtosettings.json

Deploying to meteor.com
meteor deploy --settings pathtosettings.json

In production, use the environment variable METEOR_SETTINGS
METEOR_SETTINGS="$(cat pathtosettings.json)"

EventedMind walkthrough: https://www.eventedmind.com/feed/meteor-organizing-environment-variables-and-settings