Skip to content
This repository has been archived by the owner on Dec 21, 2018. It is now read-only.

Commit

Permalink
Use new config in migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mythmon committed Apr 7, 2014
1 parent 4b71c14 commit 3a0a5d6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions migrate.js
Expand Up @@ -2,14 +2,9 @@ var _ = require('lodash');
var fs = require('fs');
var path = require('path');

var existsSync = fs.existsSync || path.existsSync;

// Global config.
if (existsSync('./config.json')) {
config = require('./config.json');
}
var config = require('./config');

config = _.extend({}, config || {});
var existsSync = fs.existsSync || path.existsSync;

if (config.pg.enabled) {
var pg = require('pg');
Expand Down

0 comments on commit 3a0a5d6

Please sign in to comment.