Here are my environment variables:
{
"facebookAppId": "yyy",
"facebookAppSecret": "yyy",
"galaxy.meteor.com": {
"env": {
"ROOT_URL": "xxx",
"MONGO_URL": "xxx",
"facebookAppId": "xxx",
"facebookAppSecret": "xxx"
}
}
}
And here’s how I configure my OAuth:
ServiceConfiguration.configurations.upsert(
{ service: "facebook" },
{
$set: {
appId: Meteor.settings.facebookAppId,
secret: Meteor.settings.facebookAppSecret
}
}
);
Now, when I deploy to Galaxy the setting yyy is used, instead of xxx for facebookAppId.
My question is, how do I structure this is uses yyy locally, and xxx on production (Galaxy hosting)?