Merge pull request #2778 from ahwayakchih/support-more-config-defaults-for-setup

This adds more setup defaults from config.
This commit is contained in:
Julian Lam
2015-04-17 11:14:30 -04:00
4 changed files with 8 additions and 5 deletions

View File

@@ -22,12 +22,14 @@
},
{
name: 'mongo:username',
description: 'MongoDB username'
description: 'MongoDB username',
'default': nconf.get('mongo:username') || ''
},
{
name: 'mongo:password',
description: 'Password of your MongoDB database',
hidden: true
hidden: true,
before: function(value) { value = value || nconf.get('mongo:password') || ''; return value; }
},
{
name: "mongo:database",