Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor Settings in a Deployed App

This is probably a very basic question, but this is my first time using Meteor + Heroku and I can't seem to figure out how to use the settings.json file after deploying a Meteor app (currently using heroku).

From my hours of research on web, it seems that in order to use the settings in a deployed app, I have to do...

export METEOR_SETTINGS="$(cat settings.json)"

At first I thought that this is meant to go to a boostrap file... Then I realized I was wrong when I started get reserved word errors (because of "export")

So... Where and how do I use this line? Am I suppose to use terminal to type this in? If so, how can I do that in Heroku?

like image 763
Mcope Avatar asked Dec 07 '14 03:12

Mcope


People also ask

How do you make a Meteor project?

The Meteor build process is configured almost entirely through adding and removing packages to your app and putting files in specially named directories. For example, to get all of the newest stable ES2015 JavaScript features in your app, you add the ecmascript package.

How do you deploy a galaxy?

To deploy the Galaxy, players had to land on a stable surface and press the Deploy hotkey ( B by default).


1 Answers

Basically: heroku config:add METEOR_SETTINGS="$(cat settings.json)".

like image 177
Tomas Romero Avatar answered Oct 13 '22 23:10

Tomas Romero