Skip to content

Commit

Permalink
changing to use heroku-compatible version of config
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseditson committed Sep 14, 2012
1 parent 6af595f commit 08d045a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion example/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Dependencies
// ------------
var config = require('config'),
var config = require('node-config-heroku'),
Server = require('urza').Server;

// If you want to use authentication, add it to the config here, or in your config file.
Expand Down
2 changes: 1 addition & 1 deletion grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(grunt) {
var scratchDir = workingDir + '/__urza_scratch'
// set up config dir so grunt will use the config client config.
process.env.NODE_CONFIG_DIR = workingDir + '/config';
var config = require('config')
var config = require('node-config-heroku')
var packageInfo = JSON.parse(fs.readFileSync(workingDir + '/package.json','utf8'))

// set up grunt task to create scratch dir
Expand Down
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Dependencies
// ------------
var config = require('config'),
var config = require('node-config-heroku'),
async = require('async'),
fs = require('fs'),
path = require('path'),
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/middleware/useragent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ------------

var useragent = require('useragent'),
config = require('config');
config = require('node-config-heroku');

// UserAgent Middleware
// --------------------
Expand Down
2 changes: 1 addition & 1 deletion lib/logging/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var path = require('path'),
fs = require('fs'),
winston = require('winston'),
SNS = require('winston-sns'),
config = require('config');
config = require('node-config-heroku');

// Local Variables
var amazon = config.amazon,
Expand Down
2 changes: 1 addition & 1 deletion lib/logging/reporter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var winston = require('winston'),
SNS = require('winston-sns'),
_ = require('underscore'),
config = require('config'),
config = require('node-config-heroku'),
env=config.environment;

// set up default options for our environments
Expand Down
2 changes: 1 addition & 1 deletion lib/providers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ##Dependencies

var MongoDB = require('./mongodb.js'),
config = require('config'),
config = require('node-config-heroku'),
walk = require('./helpers/walk.js');


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"wrench": "~1.3.9",
"underscore": "1.3.x",
"express": "2.5.x",
"config": "0.4.x",
"node-config-heroku": "0.0.x",
"winston": "git://github.com/jesseditson/winston.git",
"winston-sns": "0.0.x",
"mongoose": "2.5.x",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/providers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

var async = require('async'),
_ = require('underscore'),
config = require('config');
config = require('node-config-heroku');

// Users Class
// -----------------
Expand Down
2 changes: 1 addition & 1 deletion test/lib/mongodb-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ process.env.NODE_CONFIG_DIR = __dirname + '/../fixtures/config';
var path = require('path'),
exec = require('child_process').exec,
vows = require('vows'),
config = require('config'),
config = require('node-config-heroku'),
assert = require('assert'),
_ = require('underscore'),
MongoDB = require('../../lib/mongodb.js');
Expand Down

0 comments on commit 08d045a

Please sign in to comment.