Skip to content
Browse files

Added `__dirname + '` so it will find the ranges.json all the time

  • Loading branch information...
1 parent c1ce3f1 commit 43354af19c2ce6d52751e504482d02db45f8d99f @keverw committed May 25, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 generate_json.js
  2. +1 −1 node_CloudFlare.js
View
2 generate_json.js
@@ -11,7 +11,7 @@ ranges.v6 = v6;
var file_contents = JSON.stringify(ranges);
-fs.writeFile('./ranges.json', file_contents, 'utf8', function (err)
+fs.writeFile(__dirname + '/ranges.json', file_contents, 'utf8', function (err)
{
if (err)
{
View
2 node_CloudFlare.js
@@ -10,7 +10,7 @@
function load(callback) //Load the config
{
var fs = require('fs');
- fs.readFile('./ranges.json', 'utf8', function (err, data)
+ fs.readFile(__dirname + '/ranges.json', 'utf8', function (err, data)
{
if (err)
{

0 comments on commit 43354af

Please sign in to comment.
Something went wrong with that request. Please try again.