Created
March 20, 2014 20:27
-
-
Save rcy/9673098 to your computer and use it in GitHub Desktop.
simple example of using settings in meteor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings.json: | |
``` | |
{"foo": 99} | |
``` | |
app.js | |
``` | |
if (Meteor.isServer) | |
console.log(Meteor.settings.foo); | |
``` | |
startup: | |
``` | |
meteor --settings settings.json | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment