From 548a5a1ef270475270bbc1342e38f66439e053c7 Mon Sep 17 00:00:00 2001 From: lmarkus Date: Tue, 3 Dec 2013 16:41:22 -0800 Subject: [PATCH] Configure database during the app configuration stage --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 3a1928c..7ddc5ca 100644 --- a/index.js +++ b/index.js @@ -2,11 +2,14 @@ var kraken = require('kraken-js'), + db = require('./lib/database'), app = {}; app.configure = function configure(nconf, next) { // Fired when an app configures itself + //Configure the database + db.config(nconf.get('databaseConfig')); next(null); };