Permalink
Browse files

Fixed looking for config in good lord THE WRONG PLACE!!!!!!

  • Loading branch information...
1 parent 16fa1de commit d784b9680bf1afbf0f50bdf773451aed97749c3c @remy remy committed Jul 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/config.js
View
@@ -1,7 +1,7 @@
var fs = require('fs'),
path = require('path'),
existsSync = fs.existsSync || path.existsSync, // yeah folks, have some of that.
- localconfig = process.env.JSBIN_CONFIG || '../config.local.json';
+ localconfig = process.env.JSBIN_CONFIG || path.resolve(__dirname, '..', 'config.local.json');
// Loads the configuration options from the config.*.json files.
@@ -33,4 +33,4 @@ function deepExtend(target, object) {
if (existsSync(localconfig)) {
deepExtend(module.exports, require(localconfig));
-}
+}

0 comments on commit d784b96

Please sign in to comment.