Skip to content

Commit

Permalink
Configure database during the app configuration stage
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarkus committed Dec 4, 2013
1 parent b071b53 commit 548a5a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 548a5a1

Please sign in to comment.