meteor-deploy-config
v0.0.4Deploy Config
Trix for managing Meteor deployment configurations
What's it for?
Sometimes a new instance of an app needs to be configured before it's useful. The package takes a simple approach to solving that problem. There are two components:
A smart package that provides an
DeployConfig
key/value store that's backed by Mongo.A command line app that prompts for each unsatisfied value and communicates them back to the deployed app (yes, over DDP!).
How do I use it?
Start by fetching values from the DeployConfig
key/value store. If the value is already in DeployConfig
the callback gets called right away:
DeployConfig.get('googleSecret', function(secret) {
Meteor.accounts.google.setSecret(secret);
});
When you deploy your app run the command line utility and you'll be prompted for any values that your app needs to get from DeployConfig
. These values will be sent to the server, saved in DeployConfig
and their callbacks will be invoked:
mcfg --host=localhost --port=3000
TODO
Prefer https
Metadata
- Unknown
- Whatever
- Mike Bannister
- released 8/8/2012