From 45ba5d60dc9d2e48f491cfcc9e30ceadb129facc Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Tue, 28 Feb 2012 18:13:10 -0800 Subject: [PATCH] Windows does not like IP addresses of 0.0.0.0. --- node/server.js | 2 +- node/utils/Minify.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/server.js b/node/server.js index 8b0ab2f59..c5377d81b 100644 --- a/node/server.js +++ b/node/server.js @@ -154,7 +154,7 @@ async.waterfall([ // CommonJS loader on the client-side. var jsServer = new (Yajsml.Server)({ rootPath: 'minified/' - , rootURI: 'http://' + settings.ip + ":" + settings.port + '/static/js/' + , rootURI: 'http://localhost:' + settings.port + '/static/js/' }); var StaticAssociator = Yajsml.associators.StaticAssociator; var associations = diff --git a/node/utils/Minify.js b/node/utils/Minify.js index 00e1ce224..04371851c 100644 --- a/node/utils/Minify.js +++ b/node/utils/Minify.js @@ -148,7 +148,7 @@ function getAceFile(callback) { var filename = item.match(/"([^"]*)"/)[1]; var request = require('request'); - var baseURI = 'http://' + settings.ip + ":" + settings.port + var baseURI = 'http://localhost:' + settings.port request(baseURI + path.normalize(path.join('/static/', filename)), function (error, response, body) { if (!error && response.statusCode == 200) {