Created
January 15, 2015 16:06
-
-
Save BretFisher/756593f57c20e8a2f45a to your computer and use it in GitHub Desktop.
Meteor App Check for Ensuring You're Using --settings
This file contains hidden or 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
// lets complain to server command line if you forgot --settings when running Meteor | |
Meteor.startup(function () { | |
if (Meteor.isServer) { | |
if (Object.keys(Meteor.settings).length === 0) { | |
console.log("You forgot to run Meteor with --settings!"); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Settings are a way to have a per environment variable easily controller by the settings file. Think of things like s3 keys, etc.